Solved

HOWTO: Disable the browser Close Button, Minimize Button & Maximize Button ...

Posted on 2000-04-17
14
2,912 Views
Last Modified: 2012-05-05
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
Comment
Question by:benzwong
  • 3
  • 3
  • 2
  • +5
14 Comments
 
LVL 8

Expert Comment

by:xabi
ID: 2725608
You can disable that buttons. :(

xabi
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 2726601
xabi is right... you can't do that.

CJ
0
 
LVL 2

Expert Comment

by:burntout
ID: 2726608
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
 
LVL 2

Expert Comment

by:burntout
ID: 2726617
you can probably rig it so that if they close it it will re open a new windo with the same url.
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2726962
Don't bother asking in the JavaScript section, you can't do this.
0
 
LVL 2

Expert Comment

by:burntout
ID: 2727004
knightEknight Long live $p$g???
long live the dos prompt?

don't mind me just curious
0
 

Author Comment

by:benzwong
ID: 2729003
wow, what a good response. i know what should i do now.Anyway thanks to all of u...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:cybernietic
ID: 2729695
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
 
LVL 7

Expert Comment

by:nettrom
ID: 2730026
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
 

Author Comment

by:benzwong
ID: 2732851
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references.
0
 

Author Comment

by:benzwong
ID: 2732852
I think i'll try to use modal dialog, but can u all recommend some most useful JavaScript site for references. TQ
0
 

Accepted Solution

by:
indianno1 earned 50 total points
ID: 2734899
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
 
LVL 19

Expert Comment

by:cheekycj
ID: 2735471
I think you are wrong.

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

CJ
0
 

Expert Comment

by:indianno1
ID: 2737556
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding a Li to a UL after a specified Li contents 2 42
Tags from access to excel 3 26
.php tree directory? 5 54
Enter key on html form page 11 44
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now