TOC PREV NEXT INDEX

Put your logo here!


focus


focus sets focus on the current document.

Syntax

document.focus() 

Parameters

None.

Example

document.focus(); 

Notes

Though more commonly used to set focus on a particular element within a document, such as input or textarea elements, the focus() method is also available to the document object itself.

Specification

html


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX