HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

How to close the window when using HTML frames?
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
av_vinay



Joined: 15 Apr 2009
Posts: 2

Posted: Wed Apr 15, 2009 1:01 am     How to close the window when using HTML frames?  

How to close the window when using HTML frames, as using javascript will not work. The control will be over a single window, but not for different html pages.
I tried onclick=window.close(). .. ..........

Tell me if any other way is there?

Thanks.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

Posted: Wed Apr 15, 2009 3:03 am      

I use the following on my pop-up pages which works very well. Try it on yours where you need it.

Code: <form action="close_window"><p><input type="button" value="Close Window" onClick="window.close()"></p></form>
av_vinay



Joined: 15 Apr 2009
Posts: 2

Posted: Wed Apr 15, 2009 8:53 pm     Thank You  

Thanks for your reply. .. I just want to use such an option of closing the window. .. on clicking the logout link. .. Let me check the code provided by you.

-Vinay.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

Posted: Thu Apr 16, 2009 5:59 pm      

Let us know if it works for you.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> HTML Frame
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group