Jump to content

How To Disable The Window Close Button


JORGEMAL
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...