f



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 (prashantjoshi20@hotmail.com)

Thanks and regards,
Prashant
-1
9/5/2003 1:26:48 PM
comp.lang.javascript 38301 articles. 0 followers. javascript4 (1315) is leader. Post Follow

1 Replies
1517 Views

Similar Articles

[PageSpeed] 1

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 (prashantjoshi20@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 <gwagner@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_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-developer/upgrade_2.html


-1
Grant
9/5/2003 2:41:25 PM
Reply: