Solved

how to disabled maximize button

Posted on 2000-02-16
15
472 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now