Click to See Complete Forum and Search --> : How DO I remove the Close option on a window?


rwaring
01-06-2004, 02:56 PM
I'm using window.open to open a new window, and what i want to do is remove the minimize, maximize and close buttons in the top right of the window. Is there a way to do this? I can't find the parameter to set to turn this off in the new window. DO you know what it is?

Pittimann
01-06-2004, 03:07 PM
Hi!

Practically you can, depending on the browser. E. g. it is possible to have a popup in ie without anything, including the title bar containing the buttons you mentioned.

To close such a window, the user just presses Alt+F4 (on a PC, don't know about Mac) and it's gone...

Conclusion: please forget about it...

Cheers - Pit

rwaring
01-06-2004, 03:08 PM
forget about it? You mean it can't be done at all?

Pittimann
01-06-2004, 03:32 PM
Hi!

You cannot prevent the user from closing that window (even if js is enabled).

If you don't add 'resizable' to the window properties, the maximize/resize button will be disabled...

For opening a fullsize popup you can add the attribute 'fullsize' to the window properties (afaik: IE only).

Whatever you do concerning this issue: the user can get around it...

That's why I said "forget about it"... Sorry for that :(

Cheers - Pit