I know that I can get the hash value directly with this bit of code:
var hash = window.location.hash;
But anyway, can I get everything up to the hash value directly?
Thanks!
Edit using the answer below . I guess the best way is ...
var pageAddress = window.location.split('#')[0];
source share