The setActive MethodThe setActive method makes an element into the current active HTML element. (The active element is the one that has the focus when the document enclosing it gets the focus, and may be found using the document object's activeElement property.) You can see the support for this method in Table 6.47. Table 6.47. The setActive Method
Tip The element with the focus in a document is made into the active element by default. |