When my page has loaded, how do I make the cursor automatically appear in an input box e.g.
As an example, when you goto google.com the cursor is immediately in the search box.Code:<input type="password" name="password" size="10">
Thanks.
Printable View
When my page has loaded, how do I make the cursor automatically appear in an input box e.g.
As an example, when you goto google.com the cursor is immediately in the search box.Code:<input type="password" name="password" size="10">
Thanks.
Write it like this:
Then insert this into your body tag:Code:<input type="password" name="password" size="10" id="passw">
Code:onLoad="document.getElementById('passw').focus()"
Thanks very much.