Name
ID — NN n/a IE 4 HTML n/a
Synopsis
ID=”elementIdentifier"
Optional
A unique identifier that distinguishes this element from all the rest
in the document. You can use this attribute value in Internet
Explorer scripts as a way to reference the HEAD
element by ID rather than by the longer
document.all.tags("HEAD")[0]
reference.
Example
<HEAD ID="docHead">...</HEAD>
Value
Case-sensitive identifier.
Default
None.
Object Model Reference
- IE
[window.]document.all.tags(“HEAD”)[0].id
[window.]document.all.elementID.id
Get Dynamic HTML: The Definitive Reference 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.