JORGEMAL Posted June 22, 2009 Share Posted June 22, 2009 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 Link to comment Share on other sites More sharing options...
Ingolme Posted June 22, 2009 Share Posted June 22, 2009 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 More sharing options...
Guest FirefoxRocks Posted June 22, 2009 Share Posted June 22, 2009 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 More sharing options...
thescientist Posted June 22, 2009 Share Posted June 22, 2009 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 Maldonadothat just seems like a mean/annoying thing to do, honestly. Link to comment Share on other sites More sharing options...
mmcspadden Posted June 23, 2009 Share Posted June 23, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.