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