This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Browsers close button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Browsers close button " Watch "Browsers close button " New topic

Browsers close button

sridhar lakka
Ranch Hand

Joined: Jan 02, 2007
Posts: 109
Hi All,
Thanks in advance.
I have a requirement that in our application we have to disable/hide the browsers(IE)close button(X).
Please help me in this.

Thanks and Regards
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Well guess what, you can't.

Tell your boss don;t you think all of the pop ups and spammers would do this to us if we were able to do it?

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
I think Sridhars boss is spammer. Thats why he is looking for solution.

I agree. Here's the link:
subject: Browsers close button
Similar Threads
Socket Problems with Linux and Applets
How can i invalidate user from session when he/she is not logged out successfully
Need to capture browser close button in all browsers
Dynamic close button only shows in Firefox
How to hide the titlebar of popup window in IE7