Get hash from URL

var hashing = window.location.hash;
Sometimes we need to get part of URL. For example #hash. In this short snippet we get hash from URL in variable name *hashing* and after that can play with it any way.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.