close pop up window

S

Sandra Berland

Hi,

I would like to know if it exists
a script to permit a button to close
a pop up window with frames
(the button is in one of this frame so)

thanks
 
Y

Yann-Erwan Perio

Sandra said:
a script to permit a button to close
a pop up window with frames
(the button is in one of this frame so)

<input type="button"
value="close"
onclick="top.close();">

When you have frames, the global "top" property refers to the frameset
window (the "top" one), which is here the one you want to close. You
just need to call the "close" method for that window.


HTH
Yep.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,180
Latest member
CryptoTax Software
Top