[Javascript] shift window

aw alfwro at wp.pl
Thu Dec 19 14:09:57 CST 2002


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