Change the URL in the browser without loading the new page using JavaScript

后端 未结 14 2506
忘掉有多难
忘掉有多难 2020-11-22 02:02

How would I have a JavaScript action that may have some effects on the current page but would also change the URL in the browser so if the user hits reload or bookmark, then

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 02:37

    There is a Yahoo YUI component (Browser History Manager) which can handle this: http://developer.yahoo.com/yui/history/

提交回复
热议问题