Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to disabled maximize button

Posted on 2000-02-16
15
Medium Priority
?
481 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
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 150 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

Technology Partners: 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!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
Suggested Courses

885 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