File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Customized window with no  x- button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Customized window with no  x- button" Watch "Customized window with no  x- button" New topic

Customized window with no x- button

Manoj Rawat

Joined: Feb 10, 2006
Posts: 1
Hi!!! All

I want to show a customized window which will show some data but in that window i wants to hide the the x-button(user is not allowed to close the window with x-button, for that i have given i log out button in the window itself).
Currently i'm calling JSP page with showModalDialog() and have put some code if user accidently close the window by clicking x-button like onBeforeonload(). but the problem is, the code is not working for netscape and opera.

thnx in advance for the suggestion

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Not a JBoss question. Moving to "HTML and JavaScript"...

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
what you can do, is to show 2 divs instead of new browser window.
One is transparent and covers the whole document to make it all "disabled", another one in the middle of a page, on top of first one for user to enter information.
I agree. Here's the link:
subject: Customized window with no x- button
jQuery in Action, 3rd edition