Solved

Opening a new window maximized

Posted on 2004-08-23
3
700 Views
Last Modified: 2007-11-27
Opening a new window maximized.

Can anyone please tell me why the following code, although it correctly opens a window size 1024 x 768, in theory filling my screen when in 1024 x 768 resolution, does not create a maximised window?

<SCRIPT LANGUAGE="JavaScript1.2">
if (screen.width >= 1024)
{
window.open("index1024.htm",null,"resizable=yes,width=1024,height=768,menubar=yes,toolbar=yes,scrollbars=yes,location=yes,screenX=0,screenY=0");
}
</script>

Normally the window is opened shifted right and down, so that the right of the window and the bottom of the window are not visible.  I have to drag the window to the left and then click on the now visible square maximize icon near the top right corner of the window to make the window be positioned correctly, totally filling the screen.

How do I make the window open properly positioned?

(In case it is relevant, I am using IE 6.0.2800.1106, and Windows XP Home edition).

Thanks for any solution to this problem
0
Comment
Question by:Jeeva
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Bustarooms
ID: 11870761
change screenx and screeny to top and let
0
 
LVL 10

Accepted Solution

by:
Bustarooms earned 125 total points
ID: 11870765
let should be left
0
 

Author Comment

by:Jeeva
ID: 11871078
Thanks very much for quick solution!  (My javascript manual must be out of date!)
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

778 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