Feed on

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 within the page can cause confusion for keyboard users who immediately interact with internal page content rather than the page’s initial content (typically the site name/logo and navigation).

Leave a Reply

MDTAP | 2301 Argonne Drive, Room T17 Baltimore, Maryland 21218| Voice: 410-554-9230 Toll Free ⁄ Voice 1-800-832-4827|Email: mdtap@mdtap.org