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 (aw)
  • Subject: [Javascript] shift window
  • Date: Thu, 19 Dec 2002 21:09:57 +0100

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