JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

URL.hash Property


URL.hash Property---the anchor specification of a URL


Navigator 2.0, Internet Explorer 3.0




hash is a read/write string property of the URL object. It specifies the anchor portion of a URL, including the leading hash (#) mark. For example, the hash property of the following (fictitious) URL is "#result".

This anchor portion of a URL refers to a named position within the data referenced by the URL. In HTML files positions are named with anchors created with the <A NAME="anchor_name"> tag.

See Also

"Area", "Document.links[]", "Link", "URL", "Window.location"

Previous Home Next
URL Book Index

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz