Solved

how to disabled maximize button

Posted on 2000-02-16
15
471 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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

760 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

26 Experts available now in Live!

Get 1:1 Help Now