By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

Refreshing a different page

P: n/a
Hi

I have one page which opens a pop-up window. When a button is clicked on the
pop-up window I want it to close and refresh the page that opened it in the
first place. Is this possible? I have tried to find a way to do it, but am
not very proficient with javascript and havent stumbled upon anything.

Thanks for any help.

Mark
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Tue, 16 Dec 2003 22:34:57 +0000, mark.wolfenden wrote:
Hi

I have one page which opens a pop-up window. When a button is clicked on the
pop-up window I want it to close and refresh the page that opened it in the
first place. Is this possible? I have tried to find a way to do it, but am
not very proficient with javascript and havent stumbled upon anything.

Thanks for any help.

Mark


The window that opens a popup (via JS) is known as window.opener, so to
refresh that page, you just need to do:
if( window.opener ) window.opener.location.reload( );

Then closing the current window is:
window.close( );
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.