14
rated 0 times
[
19]
[
5]
/ answers: 1 / hits: 15652
/ 15 Years ago, thu, may 14, 2009, 12:00:00
In testing document.location.href, I have observed that when the user initiates an action that results in javascript that assigns to document.location.href, the new URL is added to the history.
However, if the call is initiated by javascript that is result of, say, state change of an XMLHTTPRequest, the entry for the current page in the history is over-written. Have I characterized this correctly? Is there a way to get the page change to be reflected in the history in this latter case?
More From » javascript