Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disableing 'x' button

 
ray bond
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic