473,597 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disable minimize

20 New Member
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.fo cus()" 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("pa ge.html"...resi zable=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 2617
acoder
16,027 Recognized Expert Moderator MVP
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 New Member
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 Recognized Expert Contributor
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 New Member
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 Recognized Expert Contributor
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
29219
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. Here is the javascript code that opens the window : child = window.open('NewWindow.aspx', null, 'width=850, height=450, directories=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, directories=no');
2
31164
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 showModalDialog. It is THE sollution!! Take a look at this link.
0
1603
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 Here is the code that opens the window <A class="light" onclick="window.open('logout.aspx','LoWin','width=250,height=100,directories=no, menubar=no, resizable=no, scrollbars=no, status=no,toolbar=no,left=370,top=380');" href="javascript:;"...
2
3883
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 I do that? ---------- Thanks Sharon
1
4955
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 in the pop up window. How can i achieve this?
11
4278
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 minimized, how do I prevent this? Thanks!
1
1793
by: shivakanth | last post by:
hi, How to disable mininize option using javascript. i am using window.open('url','testurl','');
2
4181
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
12420
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 minimize buttons as well. Is there a simple command I can use to disable just this button or any way I can adapt the cited post to do just that? Kind regards, Ken.
0
7962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6681
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.