get url anchor javascript code example
Example 1: js get anchor
window.location.hash
Example 2: js get anchor
var url = "www.aaa.com/task1/1.3.html#a_1";
var hash = url.substring(url.indexOf("#")+1);
window.location.hash
var url = "www.aaa.com/task1/1.3.html#a_1";
var hash = url.substring(url.indexOf("#")+1);