"F@bio" wrote:
I'm trying to open a window in a specific position of the screen with this
script:
window.open('window.htm','mywindow','width=250,hei ght=350,screenX=20,screenY
=100')
it works with Netscape 6.2 but Internet Explorer and Opera just seem to
ignore the XY coordinates.
Any idea on how to make it work?
Thanks!
F@bio
Internet Explorer and Opera use "top" and "left" attributes instead of "screenY"
and "screenX". So for maximum browser compatibility, include them all:
window.open('window.htm','mywindow','width=250,hei ght=350,screenX=20,screenY=100,left=20,top=100');
More details at: <url:
http://msdn.microsoft.com/workshop/a...ods/open_0.asp />
I'd also strongly suggest you upgrade to Netscape 7.11, Netscape 6.2 has a
number of bugs which could make it appear that currently valid JavaScript isn't
working right.
--
| Grant Wagner <gw*****@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html