How to create a non closable window?

Hi,

Is there a property/options to make a window non closable by the user using the mouse to click on the "X" in the upper right corner of the window?

I use the following code to create the window:

   var res = window.open("","win_res","height=360,width=250,resizable=no,scrollbars=yes,left=375,top=195");

Thanks
AlainBAsked:
Who is Participating?
 
hatecaplettersConnect With a Mentor Commented:
short version : NO

long version : the X is an integrated part of the titlebar, and that one HAS to be there (or maybe it doesn't , but you can't remove it, or setup a window without it)

hatecapletters
0
 
ThaSmartUnoCommented:
well you can move the window to a higher height .... but other than that ... its like what hatecapletters said
0
 
HolySpiritCommented:
AlainB,
If the client of your web page aren't smart enough, u can use kiosk mode (IE only)(set "fullscreen = yes" in second parameter of open() function) to do this trick, user can only close this kind of mode by ALT-F4, or press a button that u have provided to them, and i think u can try this out.
-- Holy Spirit
0
All Courses

From novice to tech pro — start learning today.