No need for jQuery
var type = window.location.hash.substr(1);
More Related Contents:
- Get current URL with jQuery?
- Trying to Validate URL Using JavaScript
- JavaScript – Get Portion of URL Path
- How to get the anchor from the URL using jQuery?
- Parsing URL hash/fragment identifier with JavaScript
- How to check if the URL contains a given string?
- Get query string parameters url values with jQuery / Javascript (querystring)
- Change URL and redirect using jQuery
- How to escape a JSON string to have it in a URL?
- How to replace url parameter with javascript/jquery?
- How to detect URL changes with jQuery
- Javascript: extract URLs from string (inc. querystring) and return array
- jQuery Youtube URL Validation with regex
- How to test if a URL string is absolute or relative?
- jQuery add class based on page URL
- Checking a Url in Jquery/Javascript
- Dynamic page load can’t load Java with page
- Why I have to put all the script to index.html in jquery mobile
- How to create a jQuery plugin with methods?
- How to stop event bubbling on checkbox click
- jQuery UI accordion that keeps multiple sections open?
- Vanilla JavaScript equivalent of jQuery’s $.ready() – how to call a function when the page/DOM is ready for it [duplicate]
- jQuery equivalent of JavaScript’s addEventListener method
- Why is ‘event’ variable available even when not passed as a parameter?
- Send FormData and String Data Together Through JQuery AJAX?
- How to change active class while click to another link in bootstrap use jquery?
- Event propagation in Javascript
- Getting Spotify API access token from frontend JavaScript code
- Is there any way to download csv file from “website button click” using Python?
- How can I calculate the difference between two times that are in 24 hour format?