Solved

Opening a new window maximized

Posted on 2004-08-23
3
697 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sums of coloumns in html/java 15 66
Angular - following an example by an expert here (Julian) 11 29
angular2 2 way binding on load 7 39
Download a website to hdd 2 49
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'…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now