Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Minimize Maximize button 1

Status
Not open for further replies.

soonkhoo

Programmer
Joined
Dec 8, 2000
Messages
133
Location
MY
Hi all,

How do i disable the button that min/max a pop up window?

Regards,
Soon
 
if you open a window like this:

mywin=window.open("mypage.htm","awin","width=300,height=300")

the max button will be disabled.

Without being a trusted app (signed script or HTA) you cannot disable the minimize button. jared@aauser.com
 
I'm using this function to open the window..

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

<body>
<a href=&quot;mainmenu1.htm&quot; onclick=&quot;NewWindow(this.href,'name','794','565','no');return false;&quot;>Main</a>

So, what should I do from here? Does your script means, if they can't maximize...they can't minimize..right? Does that also means, the max button is greyed out?
Regards,
Soon
 
the max is the only one that will be greyed out. in IE, you cna try this technique and remove the browser chrome all together:

jared@aauser.com
 
Yup... I only need to grey out the Max button. I've been to microbians.com before. But it's too much work for now.

Regards,
Soon
 
make resizable=no in your ops string jared@aauser.com
 
Oops!! I over looked at that resizable = no thingy in my pop up browser script. Thanks jared!

Soon
 
OH NO! I have a problem with greying out the max/min button in other computers... It worked fine with mine and some others.. but I just tested out and it didn't work on other machines... what could be wrong? if I put in the string,

resizable=no. Doesn't that mean it won't resize the page and the max/min button don't grey out?

How then do I grey out the max/min button.

Regards,
Soon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top