Jump to content

How To Disable The Window Close Button


JORGEMAL

Recommended Posts

Imagine a website popped up with a window that you were not able to close. That would be so annoying. You'd have to go to the task manager and shut off your browser to make it go away.For this reason, Javascript is not allowed to disable user controls.

Link to comment
Share on other sites

Guest FirefoxRocks

Disabling the close button would be a security issue because the window could remain open and exploit security holes in older browsers (e.g. download software, etc) and you wouldn't be able to shut them off.And in Linux it would be just plain annoying because if you used GNOME/KDE to launch the browser (not the terminal) there is no way to close them except by logging off.

Link to comment
Share on other sites

I am openning a new window using the window.open() method but I want to disable the normal red "X" close button. Is this possible?Regards,Jorge Maldonado
that just seems like a mean/annoying thing to do, honestly.
Link to comment
Share on other sites

I'd agree with every other post here. There is no legit reason to need to disable the close button on a window, and because of that it is not an option with normal code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...