Hi
I have command button which should quit the webpage if clicked. If I am using window.close, it is working though it is giving me message " the page will be closed...." I want no message just close the page.
It is only possible for ie to-date, it might be changed one day too, who knows. In the onclick handling, set the opener to something like null/self, for instance.
[tt] onclick="window.opener=null;window.close();"[/tt]
Moz-series would still block the close of the main page or any page for that matter which is not opened by some script.
As you've mentioned about the message, I guess the hack for ie would suit your audience.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.