Skip to content

url_change_while_you_scroll_down_a_single_page

Bankn8II©$A edited this page Apr 28, 2025 · 4 revisions

https://stackoverflow.com/questions/6146560/is-it-possible-to-have-the-url-change-while-you-scroll-down-a-single-page

https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#session-history-entry

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [length](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-length)
Returns the number of entries in the [joint session history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#joint-session-history).

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [go](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-go)( [ delta ] )
Goes back or forward the specified number of steps in the [joint session history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#joint-session-history).

A zero delta will reload the current page.

If the delta is out of range, does nothing.

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [back](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-back)()
Goes back one step in the [joint session history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#joint-session-history).

If there is no previous page, does nothing.

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [forward](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-forward)()
Goes forward one step in the [joint session history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#joint-session-history).

If there is no next page, does nothing.

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [pushState](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-pushstate)(data, title [, url ] )
Pushes the given data onto the session history, with the given title, and, if provided, the given URL.

window . [history](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history) . [replaceState](https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#dom-history-replacestate)(data, title [, url ] )
Updates the current entry in the session histor to have the given data, title, and, if provided, URL.

https://web.archive.org/web/20101006135218/https://www.w3.org/TR/html5/author/history.html#session-history-entry

image

https://computerrock.com/en/blog/html5-changing-the-browser-url-without-refreshing-page

Clone this wiki locally