benzwong
asked on
HOWTO: Disable the browser Close Button, Minimize Button & Maximize Button ...
HOWTO: Disable the browser Close Button, Minimize Button & Maximize Button in JSCript or whatever methods?Pls write a details script.Thanks.
P.S : Urgent !!!
P.S : Urgent !!!
xabi is right... you can't do that.
CJ
CJ
You should ask this in the JavaScript section...
I don't know too much javascript but I think you can get the screen size using
Screen.Width & Screen.Hieght
and you can set the window width/height
with that you should be able to min/max the window, but you can't disable closing of the window, after all it is the clients browser. they have the right to close it.
Sorry.
I don't know too much javascript but I think you can get the screen size using
Screen.Width & Screen.Hieght
and you can set the window width/height
with that you should be able to min/max the window, but you can't disable closing of the window, after all it is the clients browser. they have the right to close it.
Sorry.
you can probably rig it so that if they close it it will re open a new windo with the same url.
Don't bother asking in the JavaScript section, you can't do this.
knightEknight Long live $p$g???
long live the dos prompt?
don't mind me just curious
long live the dos prompt?
don't mind me just curious
ASKER
wow, what a good response. i know what should i do now.Anyway thanks to all of u...
you can open a window in full screen (work in IE only I think)
but then it disables the resize as well
anyhow here is a very good tutorial on full screen :
http://www.nr1webresource.com/tutorials/fullscr.htm
but then it disables the resize as well
anyhow here is a very good tutorial on full screen :
http://www.nr1webresource.com/tutorials/fullscr.htm
you can't disable them. but if you open a modal dialog window (works only in IE) you won't get any of them in that window. a hack, yes, but maybe what you're looking for anyway.
I'm actually glad that the answer is "you can't", since I'd be rather angry if a web page author should have any say in how my own operating system should behave.
I'm actually glad that the answer is "you can't", since I'd be rather angry if a web page author should have any say in how my own operating system should behave.
ASKER
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references.
ASKER
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references. TQ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think you are wrong.
Doing full screen and toolbor=yes does not do what you stated.
CJ
Doing full screen and toolbor=yes does not do what you stated.
CJ
Hi,
It is working for me in IE.
May be in Netscape, it may not work.
But U can use setResize(false) function for Netscape.
it works with Netscape but not with IE.Don't forget to put "Javascript1.2"
for this setresize function.
Try the simple code below for fullscreen option:
<html>
<script>
open("","mywindow","fullsc reen=yes")
</script>
</html>
This loads a window with fullscreen
Luv,
Indian
It is working for me in IE.
May be in Netscape, it may not work.
But U can use setResize(false) function for Netscape.
it works with Netscape but not with IE.Don't forget to put "Javascript1.2"
for this setresize function.
Try the simple code below for fullscreen option:
<html>
<script>
open("","mywindow","fullsc
</script>
</html>
This loads a window with fullscreen
Luv,
Indian
xabi