I know this will have been covered somewhere before but the search tool isn't working for me so apologies.

I have used JS before to force focus onto the first field in a form, what ever that field or form may be called. I can't remember how I did it though so wondered if someone can refresh my memory?