Skip to content

Instantly share code, notes, and snippets.

@baranga
Created January 8, 2013 09:34
Show Gist options
  • Save baranga/4482475 to your computer and use it in GitHub Desktop.
Save baranga/4482475 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>location hash test</title>
</head>
<body>
<h1>location hash test</h1>
<dl>
<dt>hash</dt>
<dd><code id="hashOutput"></code></dd>
</dl>
<script>
var hash = window.location.hash || location.hash,
output = document.getElementById('hashOutput');
output.innerHTML = hash;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment