Solved

Window without Minimize, Maximize button

Posted on 2001-07-17
12
1,982 Views
Last Modified: 2012-05-04


Friends,

   Can I create a Window (onload) without Minimize and Maximize button , ie(the window should have only the close option). If So , How?

by,
Anu.
0
Comment
Question by:anusri
  • 3
  • 3
  • 2
  • +4
12 Comments
 

Expert Comment

by:vikassethi
ID: 6292999
Hi,
No you cant do it in JavaScript...
(However, it is possible with Forms in Visual Basic)...
0
 

Expert Comment

by:vikassethi
ID: 6293015
Hi,
No you cant do it in JavaScript...
(However, it is possible with Forms in Visual Basic)...
0
 
LVL 3

Expert Comment

by:OmegaJunior
ID: 6293058
Greetings, anusri,

Have you tried

var mynewwindow = window.open(url, name, "resize=no")

?

The third argument in the window.open method asks browsers to enable or disable properties. Problem is, not all browsers support all properties. This may not work on the desired browser.

Imagine!
0
 

Expert Comment

by:radhasri
ID: 6293634

thanks for your comments OmegaJunior,

resize=no is working, but still it is possible to maximize or minimize the window by using the titlebar options,
I need the solution for this.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 6295895
I have found that something like this works:

window.open("http://www.wherever.com","wherever",height="400",width="400",toolbar="no",scrollbars="yes",resizable="no",menubar="no",screenX="0",screenY="0")'>
0
 

Expert Comment

by:virus05
ID: 6296499
If you like you can eliminate the title bar?

<html>
<script>
 function pop()
 {
  window.open("http://www.yahoo.com","Baby","toolbar=no,scrollbars=no,resizable=no,fullscreen");
 }
</script>
<body>
 <a href="#" onclick="pop();">Click for new window</a>
</body>
</html>


I hope this helps....
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Accepted Solution

by:
vikassethi earned 100 total points
ID: 6300915
Hi,
Sorry everybody...All your suggestions can change the looks and size of the window but cant remove the control buttons like minimize button, maximize button and close button from the form.
However, there is a property named fullscreen which when used while opening a window will cover the full screen and there will be no control buttons as you want...This will solve your purpose of not displaying the buttons....Here is the code to do so...

var NewWindow
NewWindow = window.open('',"NewWindow","fullscreen=yes")

You can add other features as required....However, this works weel in IE but Netscape although resizes the window to full size wont hide the control buttons...

Hope this helps.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7910386
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 7910454
Maybe a split here?

Fritz the Blank
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7999815
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to vikassethi

</recommendation>

<justification>
The Q asks for removal of min and max with retention of close.  The answer to that is in the first comment.  There are a lot of good options offered, but in the absence of a response from the user to indicate an alterntive is acceptable, the answer is "you can't do that".
</justification>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 8003378
Sounds fine,

Fritz the Blank
0
 

Expert Comment

by:SpideyMod
ID: 8068030
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

762 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

23 Experts available now in Live!

Get 1:1 Help Now