Lea Verou 13.05.2011

Change URL hash without page jump

Przeczytaj oryginał

This article explains a common problem in web development where changing the URL hash causes an unwanted page jump. It presents a solution using the History API's pushState method to update the hash smoothly, avoiding visual flicker, and includes a fallback using location.hash for older browser compatibility. It also covers the browser support for this technique.

Change URL hash without page jump

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet