Window Position...?

liunx

Guest
Is there any way of setting a windows opening position?<br />
'Cause, like, I have a bit of code that will open a window at a specific size:<br />
<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#"onClick="window.open('apage.htm','','width=400,height=700')">alink</a><br />
<br />
<br />
But when it opens the title bar is about a fifth of the way down the screen...It would be nice if I could have the page filling the whole height (or width) of the screen. There isn't anything like 'ydistance=0' to stick it to the top of the screen or anything, is there?<br />
<br />
Thanks.................<br />
<br />
:eek: Yah<!--content-->Hi Yah,<br />
Here is how you position it where you want it.<br />
<br />
left=0,top=272,screenX=0,screenY=272<br />
<br />
Just use these variables in the same way as you use the width and height etc.<br />
<br />
I think IE uses the "left=" and "top=" variables but some other browsers look at the "screenX=" and "screenX=" variables but I arent certain about that one.<br />
<br />
If you include both it should work either way.<!--content-->Hey, thanks again!<br />
<br />
You have been very helpful......Sorry for the dumb questions everyone!<br />
<br />
:rolleyes: Yah<!--content-->
 
Back
Top