html - What is a good solution for cross browser javascript redirect with history? -
I am currently fighting Google Chrome on the following chrome:
location.href = Url
location.replace (url)
document.location = url
window.navigate (url) // does not work in Chrome / Firefox
location.assign (Url))
window.open (url, '_self')
window. Location.href = Url
I have tried everything, and will not add any history entry
Explanation ours A table of items, when a JavaScript redirect with no way to history in Google Chrome?
Thank you. On clicking on the row, I want to navigate the page on a specified URL, if anyone has a good solution for anyone other than using this optical / dispatch method, then we are now using it, Please tell me
Update It appears that Stackworflow has a similar problem with itself. In the main view, click on one of the first 3 columns in the question list (# answer, etc.), then click on the back button, this will take you back 2 pages.
Although I should first say that this Chrome is behaving idiots, Should not worry about. Try creating a dummy form and submit it with the GET method and to the program ...
& lt; Form id = "dummyform" method = "GET" action = "#" & gt; & Lt; Input type = "hidden" name = "test" value = "test" /> & Lt; / Form & gt;
Then your onclick ...
var frm = document.forms ["damifform"]; Frm.action = url; Frm.submit ();
Comments
Post a Comment