{"id":2799,"date":"2015-01-28T10:32:41","date_gmt":"2015-01-28T15:32:41","guid":{"rendered":"http:\/\/www.equipmentlink.org\/blog\/?p=2799"},"modified":"2015-01-28T10:32:41","modified_gmt":"2015-01-28T15:32:41","slug":"avoid-form-auto-focusing-web-tip-31-12815","status":"publish","type":"post","link":"https:\/\/www.equipmentlink.org\/blog\/?p=2799","title":{"rendered":"Avoid Form Auto-focusing, Web Tip #31, 1\/28\/15"},"content":{"rendered":"<p><strong>Avoid Form Auto-focusing<\/strong><\/p>\n<p>Users should typically have control over the position of their cursor. Avoid using JavaScript or the HTML5 autofocus attribute to automatically place focus into a form control unless the entire purpose of that application is for user interaction in that field (such as the Search text box at google.com). Automatically setting focus within the page can cause confusion for keyboard users who immediately interact with internal page content rather than the page&#8217;s initial content (typically the site name\/logo and navigation).<\/p>\n<div class=\"al2fb_like_button\"><div id=\"fb-root\"><\/div><script type=\"text\/javascript\">\n(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/en_US\/all.js#xfbml=1&appId=149587675112835\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, \"script\", \"facebook-jssdk\"));\n<\/script>\n<fb:like href=\"https:\/\/www.equipmentlink.org\/blog\/?p=2799\" layout=\"standard\" show_faces=\"true\" share=\"false\" width=\"450\" action=\"like\" font=\"arial\" colorscheme=\"light\" ref=\"AL2FB\"><\/fb:like><\/div>","protected":false},"excerpt":{"rendered":"<p>Avoid Form Auto-focusing Users should typically have control over the position of their cursor. Avoid using JavaScript or the HTML5 autofocus attribute to automatically place focus into a form control unless the entire purpose of that application is for user interaction in that field (such as the Search text box at google.com). Automatically setting focus [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","ngg_post_thumbnail":0,"footnotes":""},"categories":[14,29,35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2799"}],"collection":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2799"}],"version-history":[{"count":1,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2799\/revisions"}],"predecessor-version":[{"id":2800,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2799\/revisions\/2800"}],"wp:attachment":[{"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}