Fluffy
Fluffy

Reputation: 28402

How to focus on specific non-form element in safari?

Is it possible to use javascript to focus anywhere but the URL if the focus is on the single form element on the page and the use presses Tab? There's a setting "press tab to highlight each item on a webpage", which does allow to do exactly that by default, but is there a way to force such behavior without that setting?

Upvotes: 0

Views: 125

Answers (1)

user166560
user166560

Reputation:

You just need to set the tabindex property on any element to make it focusable.

https://developer.mozilla.org/en-US/docs/DOM/element.tabIndex

http://snook.ca/archives/accessibility_and_usability/elements_focusable_with_tabindex

Upvotes: 1

Related Questions