C
C
ChemAli2011-11-11 11:29:48
JavaScript
ChemAli, 2011-11-11 11:29:48

How do they change the url in the address bar?

The site of one design office came to hand: onedesigncompany.com/
It looks like a “single-page”, however, when switching between slides, the url changes in the address bar, that is, you can copy and transfer the link to a specific “slide”. At the same time, the behavior of the browser does not show that it is loading something for a particularly long time and the change of slides occurs quickly enough.
I tried to dig into their code, but so far I haven't picked anything up. If you don't mind, could you give me some idea of ​​how they implemented navigation and quick url substitution in the address bar?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Gogolev, 2011-11-11
@ChemAli

habrahabr.ru/blogs/javascript/123106/

A
Andrew, 2011-11-11
@P1RATE

this is history.pushState

I
int03e, 2011-11-11
@int03e

There is such a thing as PJAX

S
SharkyFLY, 2011-11-11
@SharkyFLY

Hostory API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question