Solved

Opening a new window maximized

Posted on 2004-08-23
3
696 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

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

758 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

21 Experts available now in Live!

Get 1:1 Help Now