Name

hash — NN 2 IE 3 DOM 1

Synopsis

Read/Write

That portion of the HREF attribute’s URL following the # symbol, referring to an anchor location in a document. Do not include the # symbol when setting the property.

Example

document.all.mapArea2.hash = "section3"

Value

String.

Default

None.

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.