Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript (Dynamic Page / Replacing Content) + google map not loadong on hashchange? Re: (Dynamic Page / Replacing Content) + google map not loadong on hashchange?

#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