Top "Fragment-identifier" questions

The fragment-identifier is the part of the URI/URL following the hash symbol.

How can you check for a #hash in a URL using JavaScript?

I have some jQuery/JavaScript code that I want to run only when there is a hash (#) anchor link in …

javascript jquery anchor fragment-identifier
Should I make HTML Anchors with 'name' or 'id'?

When one wants to refer to some part of a webpage with the "http://example.com/#foo" method, should one …

html hyperlink fragment-identifier
On - window.location.hash - Change?

I am using Ajax and hash for navigation. Is there a way to check if the window.location.hash changed …

javascript ajax dom-events fragment-identifier hashchange
How to remove the hash from window.location (URL) with JavaScript without page refresh?

I have URL like: http://example.com#something, how do I remove #something, without causing the page to refresh? I …

javascript window.location fragment-identifier
Change the URL in the browser without loading the new page using JavaScript

How would I have a JavaScript action that may have some effects on the current page but would also change …

javascript url html5-history fragment-identifier hashchange
Getting URL hash location, and using it in jQuery

I'd like to get the value after a hash in the URL of the current page and then be able …

jquery url hash fragment-identifier
Modifying location.hash without page scrolling

We've got a few pages using ajax to load in content and there's a few occasions where we need to …

javascript jquery fragment-identifier
What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

I've just noticed that the long, convoluted Facebook URLs that we're used to now look like this: http://www.facebook.…

facebook url twitter fragment-identifier hashbang
Detecting Back Button/Hash Change in URL

I just set up my new homepage at http://ritter.vg. I'm using jQuery, but very minimally. It loads all …

javascript ajax navigation fragment-identifier hashchange
Change hash without reload in jQuery

I have the following code: $('ul.questions li a').click(function(event) { $('.tab').hide(); $($(this).attr('href')).fadeIn('slow'); …

jquery hash reload fragment-identifier window.location