Home › Forums › JavaScript › (Dynamic Page / Replacing Content) + google map not loadong on hashchange? › Re: (Dynamic Page / Replacing Content) + google map not loadong on hashchange?
November 17, 2012 at 9:53 pm
#114634
lhoezee
Member
To check if there is a hash in the URL you can do this:
if(window.location.hash) {
// there is a hash
// to get the hash value as a variable:
var hash_value = window.location.hash.substring(1)
}
else {
// no hash...
}
Hope that helps