[Javascript] shift window

William T. Simmons tsimmons at employmentlawadvisors.com
Thu Dec 19 15:36:03 CST 2002


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 at wp.pl>
To: <javascript at LaTech.edu>
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





More information about the Javascript mailing list