Join 150,391 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,056 people online right now. Registration is fast and FREE... Join Now!
i know this is the most stupid question. how to do coding to close a window? exit button.. plss, i'm stuck here. at least give me a site where i can learn more about this.
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
my project used microsoft visual studio, asp.net with vb.net 2003. i just want to close the window if the user want's to exit the page. meaning without click "X" to close the window.
You need to be aware that if your web application is the only thing open in the browser the user will be prompted asking if they want to close the window or not. Just an FYI
You need to be aware that if your web application is the only thing open in the browser the user will be prompted asking if they want to close the window or not. Just an FYI
ya!! that's for IE, Firefox doesn't has that kind of alerts. In fact, I guess firefox will disallow window.close() and the error in error console will be like:
"Scripts may not close windows that not opened by script"