SyntaxFix
Write A Post
Hire A Developer
Questions
For what it's worth, you can use the autofocus attribute on HTML5 compatible browsers. Works even on IE as of version 10.
autofocus
<input name="myinput" value="whatever" autofocus />