Monday, May 20, 2024
32
rated 0 times [  39] [ 7]  / answers: 1 / hits: 18586  / 12 Years ago, sat, november 3, 2012, 12:00:00

The command:



document.location.href=www.google.com 


Does not change the current web page in the google chrome browser. The command does transfer the page in the IE9 browser.



Why would this command work for IE9 but not for chrome?


More From » google-chrome

 Answers
1

An alternative solution is to add this line before document.location.href



window.event.returnValue = false;


Source: document.location does not change the webpage in IE9?


[#82217] Thursday, November 1, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terrence

Total Points: 120
Total Questions: 115
Total Answers: 87

Location: England
Member since Fri, May 22, 2020
4 Years ago
terrence questions
Sat, Jun 5, 21, 00:00, 3 Years ago
Wed, Jun 17, 20, 00:00, 4 Years ago
;