Click to See Complete Forum and Search --> : How to close current running window
sabareeswaren
04-07-2006, 03:02 AM
hi :(
In my project i have to close the current running window when the condition is true how to do it can any one tell me.....
felgall
04-07-2006, 05:00 AM
If you opened the window then you should have a way of referencing the window to run the corresponding close. If you didn't open it then you can't close it.
handshakeit
04-11-2006, 03:08 AM
where u open that window
use
Response.Write("<script language='javascript'> { self.close() }</script>");
hytechpro
04-11-2006, 04:26 AM
Hi,
You can enter the Ctrl+Z.
Thanks
Dev
handshakeit
04-11-2006, 04:58 AM
Hi,
You can enter the Ctrl+Z.
Thanks
Dev
What r u talking abt?????
TheLastBurden
04-11-2006, 11:34 PM
If it is the window is w/o Frames window.close() will work for ex:
<asp:TextBox OnClick="window.close()">
If it is the window is w/ Frames top.close() will work