set focus in html form on load (HTML5 only) Edit Delete auto control focus form html input load set <input name="q" autofocus>