By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

close pop up window

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sandra Berland wrote:
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.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.