473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

disable minimize

20
Hello,

I have a html page with javascript in it.
How do I disable the minimize (the box with the underscore in it in the corner)?
I know there are already several people who asked the same question and the answers are useful like from this:
http://www.thescripts.com/forum/thread92828.html

but the solutions don't work exactly the way I want.

putting onblur="this.focus()" in the body does keep the page from being minimized, but then I can't type anything in my textboxes.

When I use the showModalDialog Method, the javascript timer that refeshed my page every five minutes doesn't work anymore.

When I use this: window.open("page.html"...resizable=0);
only the Maximize/restore down button on the top middle is disabled. The minimized wasn't disabled.

Is there another way? Or should one of these work if used correctly?

Thank you for your time.
Mar 10 '08 #1
5 2596
acoder
16,027 Expert Mod 8TB
First of all, ask yourself if you really need this. Assuming that this is needed and there is no alternative, show your child and parent window code or a link.
Mar 10 '08 #2
fluff
20
I made this program for a kiosk where people pretty much come in, type in their info, click submit and wait for their number to be called.

I have this javascript in the head part of my html.
The page will refresh every five minutes and the page will go back to full page if the size was changed.
I also have it so if the user starts inputting into the textbox, a two minute timer starts and will submit itself if the user forgets to submit so their info isn't just sitting there on the screen.

So what I want really is if the minimize was clicked, the page will pop back up at full size, or make it so that they cannot minimize at all.

Expand|Select|Wrap|Line Numbers
  1. <script Language="JavaScript">
  2. self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight); 
  3.  
  4. var timerID ="";
  5.  
  6. timerID = setTimeout("window.location.reload(true);",300000);
  7.  
  8. function restartTimer()
  9. {
  10. if (timerID != ""){
  11. clearTimer();}
  12.  
  13. startTimer();
  14. }
  15.  
  16. function startTimer()
  17. {
  18. timerID = setTimeout("document.myform.submit();",120000);
  19. }
  20.  
  21. function clearTimer()
  22. {
  23. clearTimeout(timerID);
  24. }
  25. </script>
Mar 10 '08 #3
rnd me
427 Expert 256MB
if the refresh code is broken by an otherwise usable solution, fix the refresh code.

you can do it without js
Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="refresh" content="300"/>
  2.  
will refresh every 5 mins, put it in your head.
Mar 10 '08 #4
fluff
20
if the refresh code is broken by an otherwise usable solution, fix the refresh code.

you can do it without js
Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="refresh" content="300"/>
  2.  
will refresh every 5 mins, put it in your head.

rnd me,

Thank you. You're timer code works fine, but is the minimized page suppose to become active again when the timer is up?
The minimized page just stays minimized.
Mar 11 '08 #5
rnd me
427 Expert 256MB
you can use line number 2 of code from post number 3 in your body tag to perform likewise resizing.

<body onload="self.mo...">
Mar 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Prashant Joshi | last post by:
Hi all, I am using javascript to open a popup window. Is there any way we can disable the minimize button in this window? The maximize button is disabled. I want the same for the minimize button....
2
by: Godfried van Loo | last post by:
Dear all, I believe many people have this problem. I wanted to disable the minimize and maximize buttons in my popup window. It is impossible, I know, but I found something else... Using...
0
by: Susan | last post by:
Hi all I am using javascript to open a popup window. Is there any way we ca disable the minimize button in this window? The maximize button i disabled. I want the same for the minimize button ...
2
by: Sharon | last post by:
In the Form there is the Control/System menu. I wish to prevent this system menu from poping-up although the minimize, maximize and close buttons is still shown on the Form caption bar. How can...
1
by: PavithraDamaruga | last post by:
Below is the javascript i am using to open a popup window. function OpenPopUpWindow() { window.open("key.html",'',width='50',height='50',resizable=0); } I want to disable the minimize button...
11
by: M O J O | last post by:
Hi, I'm creating my own Sidebar (like in Vista). In my XP's quick menu, I have a button called "Show Desktop". When I click it all forms are minimized. Since I don't want my SideBar to be...
1
by: shivakanth | last post by:
hi, How to disable mininize option using javascript. i am using window.open('url','testurl','');
2
by: teddy149 | last post by:
Hi All, Plz tell me how to disable or remove minimized, restore and close button of mdi form in vb6.0 Thanks.
3
convexcube
by: convexcube | last post by:
Hi everyone, Now that I've found a way to disable the ribbon etc. I need to disable the application maximize button. I have looked at this post and implemented it, but it disables the close and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.