473,473 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

disable minimize button in pop up window

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');

don't bother about the query string parameters. Any help in this
matter will be greatly appreciated. Can u also send replies to my
hotmail address (pr*************@hotmail.com)

Thanks and regards,
Prashant
Jul 20 '05 #1
1 29186
Prashant Joshi wrote:
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');

don't bother about the query string parameters. Any help in this
matter will be greatly appreciated. Can u also send replies to my
hotmail address (pr*************@hotmail.com)

Thanks and regards,
Prashant


No, you have no control over the minimize button of a new window (unless
you're talking about Microsoft specific modal dialogs, in which case you
might, I don't use them enough to know one way or another). Quite
frankly, you can't be guaranteed anything about your call to
window.open() anyway, so trying to control what the user can do with a
window that you aren't even sure is the size you want, has the chrome you
want or is even open is rather pointless.

Also, the attributes parameter should be a comma-separated list of values
with no spaces. Some browsers will not give you the desired attributes if
you include spaces in the attributes string.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik Bethke | last post by:
Hello All, I now have a wx.NO_BORDER frame that I have written dragging code for... I like my window this way as it looks sleeker and I am now installing some image buttons. Now I would like...
0
by: Manoj | last post by:
Hi All, We have an VB.net application which has 31 projects in one solution.In this we want to disable the Maximize and minimize buttons of the child forms as they load in the main MDI.We have...
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...
3
by: bobdydd | last post by:
Hi Everybody On Report Preview Does anyone know of a way to disable the Minimum, Maximum and Close buttons, so that the user cannot close by any other means that the Toolbar button that I have...
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 ...
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...
2
by: sangeethasubramanian | last post by:
Hi, I have used the window.open method to open a new pop up window, this function is working very fine but my problem is that i don't want minimize and maximize button on this pop up window, it...
5
by: fluff | last post by:
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...
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.