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

close a window

Status
Not open for further replies.

izachar

Technical User
Oct 7, 2000
84
CA
I am using
function newWindow2(images){
imagesWindow=window.open(images, 'imageWin', 'width=480,height=250')
imagesWindow.focus()
}
and i am passing variables in the URL.

what script do I need in the window that opens to close it with a button or automatically after it runs a procedure?
 
can I have just the 'window.close()' command
I am using coldfusion to fill out a form and the next page it updates the db. after it goes through that I would like the pop up window to close.

thanks
 
if the call is from the popup then you can just use window.close()

If the call comes from the opener, then use imagesWindow.close()
 
thank you I used:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--Hide script from old browsers
window.close(self);
//End hiding script from old browser-->
</SCRIPT>
at the end of my db update and it works perfect
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top