example Flickr.com
When i go to and login
-a new popup window
fill information & login
close popup, refresh first window
How to int开发者_开发知识库eracting 2 window like that ?
before the window closes an action is called
window.opener.reload();
or
window.opener.refresh();
call this function
function closeWindow() {
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
window.close();
}
location.reload()
精彩评论