Link to home
Start Free TrialLog in
Avatar of sendhelp
sendhelp

asked on

Javascript Refresh Parent

From a drop down menu link(that is in Flash) a pop up window comes up. In that pop up the user can then choose to close the window or continue on to the new page. In both cases, I need to have the parent window to refresh or to be redirected back to the index page. My functions either go to the new page or close the window. Would I need window.opener to be used?
function newPage(newURL){
	window.open(newURL, 'newWindow', '');
	window.close();
	window.close();
}
function windowClose(){
	window.close();
}

Open in new window

Avatar of Dmitriy
Dmitriy
Flag of United States of America image

To close the parent window you could do window.opener.close();

This website could be helpful:
http://forums.devarticles.com/javascript-development-22/how-to-close-parent-window-from-child-window-21012.html
Avatar of sendhelp
sendhelp

ASKER

I don't want to close the parent from the child, I want to refresh it or redirect it to index.
I should say that I want to refresh the parent when I close the child.
ASKER CERTIFIED SOLUTION
Avatar of Dmitriy
Dmitriy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial