JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

URL.hash Property

Name

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

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

URL.hash

Description

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".

http://www.ora.com:1234/catalog/search.html?JavaScript#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 URL.host

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