window.document
JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax
Creates Instance of Document Object window.document.event window.document.method() window.document.property
Description
The document property, which is a child object of the Window object, is a core JavaScript object that is created when instances of the <body> tag are encountered. The properties, methods, and events associated with this object are in Table 7.48.
Type | Item | Description |
---|---|---|
Event Handlers | onClick | Executes code when the document is clicked. |
onDblClick | Executes code when the document is double-clicked. | |
onKeyDown | Executes code when a key is pressed down. This ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.