Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] shift window


  • From: javascript@xxxxxxxxxx (William T. Simmons)
  • Subject: [Javascript] shift window
  • Date: Thu, 19 Dec 2002 15:36:03 -0600

Andrzej,
Try "moveTo" in place of "scrollTo" - that works for me.
HTH,
Tommy Simmons
Employment Law Advisory Network
www.employmentlawadvisors.com

----- Original Message ----- 
From: "aw" <alfwro@xxxxx>
To: <javascript@xxxxxxxxxx>
Sent: Thursday, December 19, 2002 2:09 PM
Subject: [Javascript] shift window


> Hi all
> this script should do: 
> 1. if window is opened resize it to current monitor resolution - 
> it's works fine
> 2. then shift this window to top left of the monitor - fail, why? 
> Whats wrong ? How to do this?
> 
> <script language="JavaScript"><!--//
> x= window.screen.availWidth;
> y= window.screen.availHeight;
> top.window.resizeTo(x,y);
> top.window.scrollTo(0,0);
> self.focus();
> //--></SCRIPT>
> 
> regards 
> andrzej