ZTree.com  | ZEN  | About...  

 Index   Back

History manipulation   [Discuss]

By: Peter Shute       
Date: Apr 28,2016 at 17:25
In Response to: History manipulation (Martijn Coppoolse)

> https://notepad-plus-plus.org/community/topic/237/editing-600-mega-xml-file/10
> >
> > Odd behaviour on that page. As I scroll up and down (in Firefox), the
> > URL in the address bar changes to match the URL of each post. How?
> I suspect this is done using History.pushState:
> https://html.spec.whatwg.org/multipage/browsers.html#the-history-interface

I'm slightly uncomfortable with JavaScript(?) changing the URL. It works in IE 11 and Edge, but when I tried it with IE 8, it won't even load the page.

> It allows linking directly to a specific post on the page.

Yes, I was surprised to see that when I pasted the link into the forum reply, it already had the post's anchor appended.

Thread locked

Messages in this Thread

94,578 Postings in 11,930 Threads, 348 registered users, 16 users online (1 registered, 15 guests)
Index | Admin contact |   Forum Time: Nov 12, 2019 - 7:25 pm EST  |  Hits:29,077,670  (6,845 Today )
RSS Feed