Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1124
  • Last Modified:

Deactivate maximize button

I am opening a window through javascript using the below statement

w1=window.open('xxx',w1, 'nomaximize;scrolling=no,....');

when I try this program in netscape bydefault the maximize button will be deactivated, whereas in IE even after specifying the window feature as nomaximize or maximize=no , we can still maximize it.

Is there any other way to deactivate the maximize button for IE browser, which is also applicable to Netscape.


Thanks in Advance.

0
nirmalas
Asked:
nirmalas
  • 3
  • 2
  • 2
  • +2
1 Solution
 
xyzffffCommented:
I think you cann't do it.
0
 
jbirkCommented:
You can always just specify resizable=0.... then they can't resize OR maximize.
-Josh
0
 
xyzffffCommented:
no, specify "resizable=0" just can avoid resize, but the minimize and maximize can work at least in IE.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
jbirkCommented:
xyzffff, you are right.  I hadn't checked it...  and I don't use IE much...  Why can't the browsers get along??  Every time something works great in only Netscape, I'll find something that works great in only IE...

Oh well...  I can't think of anything else right now, sorry nirmalas.
-Josh
0
 
DeatheadCommented:
I have a script that constantly puts focus on the page so even if it does get minimized, It *should* go back up, I will look at the script and tell you either way, K?
0
 
clim1219Commented:
hey nirmalas,

i think i have the answer to your problem. in IE to display a window without the maximize and minimize buttons use the window.showModalDialog() function.

<html>
<head>
<script language="javascript">
function testdialog() {
    w_call = window.showModalDialog( "dummy.html", "",
             "dialogWidth=200,dialogHeight=200") ;
}
</script>
</head>
<body onload="testdialog()">
</body>
</html>
0
 
nirmalasAuthor Commented:
First let me thank you for your answer.

Its true that showmodeldialog() will open a window which cannot be maximized. But if window has 2 frames, then we cant refer or refresh them by giving parent.frames[0]..... etc., . I am creating this window to display a game, and it has got 2 frames where often the control goes to other document and gets back to parent file.

so....
0
 
clim1219Commented:
well, that would be a question on frames. but i did answer your question in opening a window without a maximize button. anyway, i'll try to find a way to do it. are you planning to award the points by then?
0
 
clim1219Commented:
i've tried experimenting on frames within a modal dialog box and i found no problems referring to the parent frames or the other child frame. and also, you're follow up question on frames is somewhat not clear, can you describe clearly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now