File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes disableing 'x' button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disableing Watch "disableing New topic
Author

disableing 'x' button

ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
is there any way to disable 'x' button at top right corner of the
browser window with javascript ,
if 'resizable=no' is given then restore button will be disabled
but how to disable close 'x' button , is it possible with any way??
Angela Poynton
Ranch Hand

Joined: Mar 02, 2000
Posts: 3143
No can do as far as I know. I think the only power javascript has over the browser is the resizable attribute you mentioned. I doubt people would be very impressed if you took away their power to close the window ... less experienced people may no be aware that you can also do it by the option in the file menu.


Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disableing 'x' button
 
Similar Threads
disable OK button in JOptionPane when input is null
how to disable the dialog " Press ok to send data ..."
JDialog
browswer's back button
Hiding button label when button is disable