How to close current running window
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.....
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.
Stephen
where u open that window
use
Response.Write("<script language='javascript'> { self.close() }</script>");
------------------------------------------
Regards
Abhishek Goel
Software Developer in handshakeit (Handshake Infotech Pvt Ltd.)
------------------------------------------
ActiveX controls
Enter the Ctrl+Z
Hi,
You can enter the Ctrl+Z.
Thanks
Dev
Originally Posted by
hytechpro
Hi,
You can enter the Ctrl+Z.
Thanks
Dev
What r u talking abt?????
------------------------------------------
Regards
Abhishek Goel
Software Developer in handshakeit (Handshake Infotech Pvt Ltd.)
------------------------------------------
ActiveX controls
If it is the window is w/o Frames window.close() will work for ex:
Code:
<asp:TextBox OnClick="window.close()">
If it is the window is w/ Frames top.close() will work
Originally Posted by
TheLastBurden
If it is the window is w/o Frames window.close() will work for ex:
Code:
<asp:TextBox OnClick="window.close()">
If it is the window is w/ Frames top.close() will work
thank you so much @theLastBurden
so simple and works great!
this is what i have been looking for, for almost a week!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks