Hi,
How to disable (X) button in window.
I tried with some properties like titlebar=no/0 in window.open but it is not working fine. Can anybody help me with this query.
Thanks in advance
Hi,
How to disable (X) button in window.
I tried with some properties like titlebar=no/0 in window.open but it is not working fine. Can anybody help me with this query.
Thanks in advance
See this page and this page. You can handle the onunload
event, but there's nothing you can do to prevent a window from being closed; the best you can do prompt the user if they want to "navigate away from the page".
You cannot disable a close button as wj32 said the best thing you can do is show a warnign if they are closing the window.
But I tried with calling a script in onunload method in body tag it is working fine