Why doesn't window.location load a new page?

This bit of code is used to work, but now it is not:

var url = myurl +'?id=' + id + '&phase=' + phase;
window.location = url;

Using the IE dev toolbar, I checked that the url has a valid url and that window.location returns a new url ... the only problem is that the page does not reload.

Does anyone know of any reasons window.location now actually loads a new document when it is assigned?

+5
source share
5 answers

Thanks @ Senad Meskin .

document.location = url;

worked for me. Any reason why the window stopped working?

-1
source

window.location.href = url; .

+13

JavaScript onclick <input> type = " " = " "

type = "submit", , .

, , , .

+5

, , - google ( ). , , google.com - , ...

, iframe, -.

, Max HTML Beauty ++ 2004 , , :

 To help protect the security of information you enter into this  
 website, the publisher of this content does not allow it to be
 displayed in a frame.

:

window.location = "http://www.google.com";  

, , ... :/

+1

jquery, , , data-ajax=false <a href="....

0

All Articles