Arsen Zahray
Arsen Zahray

Reputation: 25287

Can anyone provide a good info on the various uses of hash(#) in urls?

I'm developing a software, which is going to provide in-deep information about url's. While the get-params are simple, I'm having trouble with the hash.

At first it was used to mark places in the document to navigate to, but we're past that now. I've seen JS engines using it to store params similar to the get strings.

So, here's my question: is everything that comes after a hash free game, or are there any conventions about what it should look like?

Upvotes: 1

Views: 82

Answers (3)

Julian Reschke
Julian Reschke

Reputation: 42017

You want to read http://www.jenitennison.com/blog/node/154

Upvotes: 1

Michal B.
Michal B.

Reputation: 5719

It all depends on what you need. Hashes are used in modern web applications that make use of asynchronous calls to the server using ajax. This e.g. allows the user to copy the link and receive the same content after pasting (actions taken are put into hash which changes the url which otherwise would remain static).

Upvotes: 1

GeekMasher
GeekMasher

Reputation: 1086

Try these sites it could help. Fragment Identifier, Wikipedia or Pound Sign, Google

It's got a list of examples you could use.

Upvotes: 2

Related Questions