Link to home
Start Free TrialLog in
Avatar of syn_siju
syn_siju

asked on

Javascript Window with no close button

Hi
How can I open a window from Javascript which have the close button disabled.
My requirement is to have a window that can be closed only thru an option given in the window.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of NetWize
NetWize

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of avner
avner

definitely not. Cannot be done.
What you can do is to set an onbeforeunload (IE only) event that will alert the user if he closed the window from the "X" and not from the button you created.
ALT F4 stays active forever!
What about a browser with disabled Java on client side ?
Do you check existance of Java ?

The only way to open a not standardly closed window, is to simulate a Windows-like window in complete pure Java.

mf
I know: Java only works if java is enabled... but isn't that true for JavaScript also?
I think the best reason to disable JavaScript completly is that some guys will always force "unclosable" popups to open...
You can disable javascript as well in your browser settings.
But to generate a new window, I think you will need Java anyway.

mf
Avatar of Devario Johnson
I think this guy is saying that he wants to create a pop up window in using Javascript that has no close "x"...correct?

IMPOSSIBLE!!!!!
darn. I saw one!
yesterday i had a popup on my screen just like syn_siju wanted to create one. with no title-bar and just a close-button. But unfortunately, my ALT-F4-finger was too fast so it was gone and the site has a random-generator for their popups... but at least in IE 6 it seems possible

One other "solution" the enxt popup brought up was a graphic image of the titlebar (with the "x" in it) on top of the page and the popup was positioned on my screen, that the "faked" titlebar was on top and the "real" titlebar was just outside my visible area... so clicking what i thought to be x opened another page...