View Full Version : refresh parent window on close

02-22-2007, 02:35 PM
I'm wondering how i can refresh the parent window when closing a popup.

I know that i can do it by click a link to execute a js function. but I'm looking for a way to refresh the parent even if the user just clicks the "X" in the upper right corner to close the window.

any ideas would be great!

thanks in advance for your time!

02-22-2007, 02:43 PM
Is this to make the same popup reappear? tut tut tut! ;)

You could probably use window.onunload(window.opener.parent.location.reload()) from the popup to refresh the parent. Or something along those lines.



02-22-2007, 02:47 PM
no, just to make the parent window refresh displaying the data that was inserted using the popup.

thanks, i'll try that.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum