Skip to content Skip to sidebar Skip to footer

Javascript Popup Window And Reload

I have a slight variation on the window.opener.reload javascript. Normally, if I want to reload a page after closing a pop-up window I use window.opener.reload(true) But this

Solution 1:

Assign to location.href:

opener.location.href = "url";

Solution 2:

This might work (subject to same-origin policy restrictions):

window.opener.location = url;


Solution 3:

Try this instead:

window.opener.location.href = "somepage.htm";

Solution 4:

You dont need to reload page when set a new uri (second case) you must code directly:

opener.location.href = "url";

Post a Comment for "Javascript Popup Window And Reload"