UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

25 lines (24 loc) 651 B
<html> <head> <title>dojo.hash() with &lt;base&gt; test</title> <script> var ready = false; </script> <script type="text/javascript" src="../../../dojo.js" ></script> <script>dojo.require('dojo.hash');</script> <base href="http://dojotoolkit.org/"> <script> dojo.ready(function(){ ready = true; }); </script> </head> <body> <h1>dojo.hash() with &lt;base&gt; test</h1> <p id="_location"></p> <div style="padding: 20px"> <button id='sethash' onclick="dojo.hash('#myhash1')">dojo.hash('#myhash1')</button> <button id='sethashtrue' onclick="dojo.hash('#myhash2', true)">dojo.hash('#myhash2', true)</button> </div> </body> </html>