Determines as best as possible whether a given element can hold focus. This is different than any element with a focus() method as most elements will do nothing interesting when focus() is called. This is to determine if focus() is worth calling.
focus()
An element to check whether it is focusable
boolean
Determines as best as possible whether a given element can hold focus. This is different than any element with a
focus()
method as most elements will do nothing interesting whenfocus()
is called. This is to determine iffocus()
is worth calling.