?
Solved

Opening a new window maximized

Posted on 2004-08-23
3
Medium Priority
?
715 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Suggested Courses

800 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