Answers for "js get anchor"

1

js get anchor

var url = "www.aaa.com/task1/1.3.html#a_1";
var hash = url.substring(url.indexOf("#")+1);
Posted by: Guest on November-02-2020
1

js get anchor

window.location.hash
Posted by: Guest on November-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language