Name
hash — NN 2 IE 3 DOM 1
Synopsis
Read/Write
That portion of a URL following the #
symbol,
referring to an anchor location in a document. This property contains
its data only if the user has explicitly navigated to an anchor, and
is not just scrolling to it. Do not include the #
symbol when setting the property.
Example
location.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.