JavaScript Vérifiez le hachage dans l'URL

if (location.href.indexOf("#") != -1) {
    //current url has a #hash in it
}
Grepper