dbutler Posted July 25, 2009 Report Share Posted July 25, 2009 Its my understanding that the HTML DOM contains a way to have the curser go directly to a specified text form field upon page load. I have a very simple login page to a php/mysql application I built and when users go to that page, I want the cursor to default to already be in the "username" form text field. Can I do this outside of javascript??? Thanks in advance for your help...drb Link to comment Share on other sites More sharing options...
Ingolme Posted July 25, 2009 Report Share Posted July 25, 2009 HTML DOM does have the way, but you can only access the DOM with Javascript.The Input object has a focus() method. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now