I know I can get the hash value directly with this bit of code:
var hash = window.location.hash;
But is there anyway I can get the everything before the hash value directly as well?
Thank you!
Edit Using the Answer bellow: I am guessing the best way is..
var pageAddress = window.location.split('#')[0];
I use: