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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close the popup window!!!

Status
Not open for further replies.

hungnguyen

Programmer
Sep 22, 2000
43
US
Hi all,

here is my problem. After clicking a button, an op-up window is opening for searching. Then I click <OK> button on the pop-up window!!! The window will be closed; the results of the research will displayed in two places: one is main window, the other is on a new pop-up window.
Main window for viewing and pop-up window for printing. After that I close the main window but the child window is still open. IS there any way to close the pop-up window!!!
Thanks for your help.
Hung Nguyen
 
as long as you have a reference to the window, the answer is yes. This code goes in the main window:

myprintwin=window.open(&quot;somepage.htm&quot;)

no you can reference that window as myprintwin, so just say:

myprintwin.close() jaredn@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top