Can anyone let me know how to set focus to the first field on an Active server page?

I guess the following code can be used

theForm.fieldname.focus() 'java script

can be used but I am not sure where to invoke this.


Thanks.