Solved

how to disabled maximize button

Posted on 2000-02-16
15
477 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…
Suggested Courses

635 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