BiberFiver
BiberFiver

Reputation: 167

How does this site change the site location?

http://www.beatport.com

How are they doing that?

They are changing the url in the browser without using hash like # characters and stuff like that. And without refreshing, just ajax :|

The URLs look like normal URLs, you can go from the homepage directly to http://www.beatport.com/genre/psy-trance/13 without page refresh

Upvotes: 2

Views: 168

Answers (3)

AKX
AKX

Reputation: 169124

They're probably leveraging the HTML 5 History API.

Upvotes: 1

Eduardo
Eduardo

Reputation: 22834

You can do it using the History API.

http://diveintohtml5.ep.io/history.html https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history

Upvotes: 3

Madara's Ghost
Madara's Ghost

Reputation: 174967

Correcting my previous answer, see Modify the URL without reloading the page. See the second answer.

Upvotes: 0

Related Questions