|
HTML DOM hash Property
Definition and Usage
The hash property sets or returns the URL from
the hash sign (#).
The hash property specifies an anchor name in a URL.
Syntax
Example
This example get the hash part from a location.
(like "#part2" from http://example.com/test.htm#part2)
<html>
<body>
<script type="text/javascript">
document.write(location.hash);
</script>
</body>
</html>
|
|
Try-It-Yourself Demos
Anchors array
- This example opens two windows. The first window contains four buttons and the
second window defines four anchors from 0 to 3. When a button is clicked in the
first window, the onclick event handler goes to the specified anchor in the
second window.

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator & taxonomy editor
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|