473,405 Members | 2,338 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,405 software developers and data experts.

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 29174
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
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
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...

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.