This is my URL:
www.example.com/contact#test
Now I need to test. According to the research, I've found a site related to my problem, and I realized that I should use of hash for get test from my url. something like this:
var url = www.example.com/contact#test;
var anchor = url.hash;
alert(anchor);but when I use of alert for anchor, it shows me undefined. anyway how can I get test from my url ?
 
     
     
    