Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I refreshed the parent window, I want to close child window same time 1

Status
Not open for further replies.

mb22

Programmer
Joined
Sep 4, 2002
Messages
258
Location
US
if i have a parent window; then i open a child window ;

WHILE in the child window, i do some stuff, then I refresh the parent window.... Using javascript with Response.Write

window.opener.document.forms(0).submit

How can I add code to close the child window right after that, without having to manually close the child window.

In other words I want to refresh the parent window and close the child window.
 
Just add
Code:
self.close();
after, it'll close the child window from within itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top