Returns whether a passed element is currently in focus.
Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.
![]() |
Syntax
var retVal = DiagnosticsEmulation.getFocusStyling(element);
Parameters
element [in]
Type: NodeHTML page element.
Return value
Type: bool
True if the element has focus, false otherwise.
.png)