Connecting Tech Pros Worldwide Help | Site Map

close pop up window

Sandra Berland
Guest
 
Posts: n/a
#1: Jul 20 '05
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


Yann-Erwan Perio
Guest
 
Posts: n/a
#2: Jul 20 '05

re: close pop up window


Sandra Berland wrote:
[color=blue]
> a script to permit a button to close
> a pop up window with frames
> (the button is in one of this frame so)[/color]

<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.
Closed Thread