Lea Verou 2011/5/13

Change URL hash without page jump

Read Original

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

评论

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet