hash property (location, a, area)
Sets or returns the subsection (begins with a '#' sign) of the URL assigned to the object.
When you set the value of this property, do not include the '#' (hashmark) sign.
You can find the related objects in the Supported by objects section below.
This property is read/write.
String that sets or retrieves the hash subsection of the URL.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the hash property for an anchor:
Did you find this example helpful?
User Contributed Comments