exhtml
12/2/2016 - 6:18 AM

Detectar un #hash en la URL

Detectar un #hash en la URL

if(window.location.hash) {
  // Fragment exists
  alert(window.location.hash);
} else {
  // Fragment doesn't exist
}