Share via


WinJS.UI.XYFocus.focusRoot property

Gets or sets the element that is the focus root for the XYFocus system.

Syntax

var focusRoot = WinJS.UI.XYFocus.focusRoot;
WinJS.UI.XYFocus.focusRoot = focusRoot;

Property value

Type: HTMLElement

The focus root is the root node on the DOM tree of elements that can be focused. The default focus root is the body element. The focus root can be assigned to any focusable element on the page. HTML elements are focusable if their tabindex attribute value is other than -1 or if they use the win-focusable class.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI.XYFocus

See also

WinJS.UI.XYFocus

moveFocus()

tabindex attribute | tabindex property