Static content on website - when the url changes

Please correct me if my title is confusing, but I don't understand how this site works. The URL changes, but the title is static and the music plays without interruption.

(URL removed)

I know hash tags, but as I see here, the whole url changes.

+3


source to share


2 answers


In short, HTML5.

You can change the url to whatever you like using window.history.pushState ()



Read http://diveintohtml5.info/history.html

+1


source


For crossbrowser support and backward compatibility check out the BB Almans BBQ plugin (JQuery / Javascript), it does a great job with history and PushState.

http://benalman.com/projects/jquery-bbq-plugin/



What happens on deezer.com is you only visit one page and the rest of the content is pulled in by ajax and the url is updated to reflect the ajax content.

If you need to know about ajax you can refer to the jquery documentation http://api.jquery.com/jQuery.ajax/

0


source







All Articles