Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   CSS and HTML (http://www.udm4.com/forum/forumdisplay.php?f=8)
-   -   Stupid question (http://www.udm4.com/forum/showthread.php?t=88)

paulj 08-06-2007 06:31 PM

Stupid question
 
Ok this is a stupid question but I am drawing a blank and im sure it is HTML related and not JS. Anyway what I am trying to remember is, how do I set the cursor to be in a text box in a form when the page loads? Thanks alot for the help

08-07-2007 02:59 PM

Code:

<body onload="document.myform.myfield.focus()">
where myform is the 'name' attribute of your form and myfield is the 'name' attribute of your field.

hth

theUKdude


All times are GMT. The time now is 09:18 AM.

Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.