How to place the cursor (auto focus) in text box when a page gets loaded without javascript support?
Solution 1:
Ya its possible to do without support of javascript..
We can use html5 auto focus attribute
For Example:
<input type="text" name="name" autofocus="autofocus" id="xax" />
If use it (autofocus="autofocus") in text field means that text field get focused when page gets loaded..
For more details:
http://www.hscripts.com/tutorials/html5/autofocus-attribute.html
Solution 2:
Just add autofocus
in first input or textarea.
<input type="text" name="name" id="xax" autofocus="autofocus" />
Solution 3:
This will work:
OnLoad="document.myform.mytextfield.focus();"