Can JavaScript set a Sequential Focus Navigation Starting Point?
This is a follow-up from my last blog post . Should a web author be able to explicitly set a Sequential Focus Navigation Starting Point using JavaScript? There are several reasons why the answer should be "yes." It can improve user experience in some cases Today, for accessibility it's often necessary to set focus on a div or static text. If browsers and assistive technologies will provide a consistent experience for anchor links, then instead of setting focus on non-actionable content, it would be more like native browser behavior to set a Sequential Focus Navigation Starting Point. In such cases users would expect to see the element in the viewport, so the author should also use Element.scrollIntoView() . Less often, this same technique can solve a usability problem when JavaScript sets focus on a text input. In devices with virtual keyboards (iOS Safari at least), input.focus() causes the virtual keyboard to appear. This is appropriate in some cases, where th...