get hash value url javascript code example
Example 1: javascript change url hash
window.location.hash = '#hash_value';
Example 2: Javascript check for hash in URL
if (location.href.indexOf("#") != -1) {
//current url has a #hash in it
}
Example 3: get hash js
location.hash