JS obtén el ancla
window.location.hash
Sal-versij
window.location.hash
var url = "www.aaa.com/task1/1.3.html#a_1";
var hash = url.substring(url.indexOf("#")+1);