Gets all focusable elements within an element and sets it to the given tabindex. This method is paired with "unsetFocusableElementsToTabIndex" to undo this action.
# Set all focusable elements to -1 tabindex. dom.setFocusableElementsToTabIndex(parentElement, -1);# Later undo this effect. Focusable elements revert to their original tab index. dom.unsetFocusableElementsToTabIndex(parentElement); Copy
# Set all focusable elements to -1 tabindex. dom.setFocusableElementsToTabIndex(parentElement, -1);# Later undo this effect. Focusable elements revert to their original tab index. dom.unsetFocusableElementsToTabIndex(parentElement);
Gets all focusable elements within an element and sets it to the given tabindex. This method is paired with "unsetFocusableElementsToTabIndex" to undo this action.