Solved

how to disabled maximize button

Posted on 2000-02-16
15
476 Views
Last Modified: 2012-06-21
how to disabled maximize button when we open the window using javascript

window.open (URL,title,features)
0
Comment
Question by:hotbc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
  • 2
  • +1
15 Comments
 
LVL 3

Expert Comment

by:TYoung
ID: 2529708
in features, try


"resizable=no"



If that doesn't work, at least you wont be able to resize it
0
 

Author Comment

by:hotbc
ID: 2529937
thank you Tyoung i already know about that my question is "how to disable MAXIMIXE BUTTON on the right top corner on the window ?"
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2530240
Netscape only and needs signing (UniversalBrowserRead):
window.open(...,...,'titlebar=no')
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:npappas
ID: 2530947
This generally isn't possible because the title bar is handled by the OS, not the browser.

Like mplungjan said, you can use a "signed script" to get Navigator to open a window with no title bar, but the user will be asked several questions before the window is opened -- this is considered a security violation (hence the signed script).

I'm sure this is possible in IE too (there are so many security holes you can do just about anything), but I don't know how.
0
 
LVL 3

Expert Comment

by:TYoung
ID: 2532991
yes...npappas is right. The maximaze button is handled my netscape (or the crappy IE), and not any JavaScript applications. If VBscript would let you use the API, then you could SendMessage the window, but you can't. Sorry.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2533086
Alternatively use an HTA

Michel
0
 

Author Comment

by:hotbc
ID: 2533424
what is HTA ?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2533869
Add this to your head and opne the file in internet explorer 5

  <HTA:APPLICATION ID="HTAEx"
    APPLICATIONNAME="HTAEx"
    ICON="e.ico"
    WINDOWSTATE="normal">

Michel
0
 

Author Comment

by:hotbc
ID: 2537753
Michel, where should put this code ?

<HTA:APPLICATION ID="HTAEx" APPLICATIONNAME="HTAEx" ICON="e.ico"  WINDOWSTATE="normal">

<html>
<body>
hello world
</body>
</html>
0
 

Author Comment

by:hotbc
ID: 2537758
i try that code shown above and it didn't work.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2537947
In the head.


<html>
<head>
<HTA:APPLICATION ID="HTAEx" APPLICATIONNAME="HTAEx" ICON="e.ico"  WINDOWSTATE="normal">
</head>
                      <body>
                      hello world
                      </body>
                      </html>

Michel
0
 

Author Comment

by:hotbc
ID: 2541761
i use ie 5 and it didn't work
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
ID: 2541983
0
 

Author Comment

by:hotbc
ID: 2545820
well i copy and paste that code from microsoft and i got alert -> message box undefined ...


thank's anyway.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2545910
You need to save the file with extension hta

Michel
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question