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 pop up in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "pop up in jsp" Watch "pop up in jsp" New topic

pop up in jsp

Sujittt Tripathyrr
Ranch Hand

Joined: Jun 21, 2006
Posts: 96

I create a popup window in jsp and i have a requirement that i have to disable the close button of the popup window because i have a close button in the popup html itself .

Thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

This is completely a client-side issue. Moved to the HTML forum.

[Asking smart questions] [About Bear] [Books by Bear]
Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi Sujittt,

Its impossible because browser window works on MFC. Javascript works on HTML DOM. Please search like 'close X button' in this forum you can find out alternative solution.

With regards,
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

How are you creating the popup? Are you using window.createPopup(). If not, post the code through which you are creating the popup

[My Blog] [JavaRanch Journal]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not diable or remove the x in a pop up window. What you would have to do is use a layer (div) on top of the page (z-Index)with an iframe so the user can not remove it.

I agree. Here's the link:
subject: pop up in jsp
It's not a secret anymore!