about java script
-
I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?
-
I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?
Allah Kaa Bandaa wrote: Can we restrict the dialog from appearing I think that is a security feature.
Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
-
I am calling a java script function on button click. This function closes the window. On runtime, when i press the button, a dialog appears asking me that program is trying to close window, do you want to close the window?... I want to ask that Can we restrict the dialog from appearing, that is.... when i click the button, then the window automatically will automatically close without any prompt?
The prompt appears because you are attempting to close a parent window that may or may not have children windows open. If you opened the window with "window.open()" and then used "window.close()" on the new window, you'll notice that there is no prompt. This is a browser setting that can't be changed. -BC