• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3241
  • Last Modified:

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 !!!
0
benzwong
Asked:
benzwong
  • 3
  • 3
  • 2
  • +5
1 Solution
 
xabiCommented:
You can disable that buttons. :(

xabi
0
 
cheekycjCommented:
xabi is right... you can't do that.

CJ
0
 
burntoutCommented:
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.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
burntoutCommented:
you can probably rig it so that if they close it it will re open a new windo with the same url.
0
 
knightEknightCommented:
Don't bother asking in the JavaScript section, you can't do this.
0
 
burntoutCommented:
knightEknight Long live $p$g???
long live the dos prompt?

don't mind me just curious
0
 
benzwongAuthor Commented:
wow, what a good response. i know what should i do now.Anyway thanks to all of u...
0
 
cybernieticCommented:
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 
0
 
nettromCommented:
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.
0
 
benzwongAuthor Commented:
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references.
0
 
benzwongAuthor Commented:
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references. TQ
0
 
indianno1Commented:
Hi,
  I think U can do That!!!
  when opening a window just give "fullscreen=yes" property just as u give "toolbar=yes". this will load ur screen full and u cannot minimize,maximize or close it or resize it. u can not even shift focus. U can close it only by pressing alt+f4 or using taskmanager(ctrl+alt+del). U can change focus by using window key on keyboard.
         It works with IE.I think it works with netscape also.

Luv,
Indian
0
 
cheekycjCommented:
I think you are wrong.

Doing full screen and toolbor=yes does not do what you stated.

CJ
0
 
indianno1Commented:
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","fullscreen=yes")
</script>
</html>

This loads a window with fullscreen
Luv,
Indian
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now