Click to See Complete Forum and Search --> : question about frames ,pls help me


niroshan
03-21-2003, 03:36 AM
Hi guys,
I have a page called X that has two frames and that two frames will display two different pages. I have a button in the bottom frame page called ‘close window’. What I want is when some one click on it should close the frame page. (That’s mean the page X)

Any body knows how to do this? Pls help me. I really appreciate if any body can help me.


Thank you

niroshan

gil davis
03-21-2003, 05:42 AM
<input type="button" onclick="window.top.close()" value="Close Window">

niroshan
03-21-2003, 09:19 PM
thank you very much for your reply and i really appreciate it.