Pop Ups

liunx

Guest
if i set the target of a link to _blank, is there a way that i can control the dimensions of the window that opens, and whether its resizeable, has scrollbars etc.<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onClick="window.open('index.php','Battered Clan Site','width=1024,height=575,left=50%,top=50%,screenX=50%,screenY=50%')">Enter</a><br />
<br />
have this so far, but its not working. anyone care to tell me why?<!--content--><a href=http://www.htmlforums.com/archive/index.php/"#" onClick="window.open('pageurl','pagetitle','width=pagewidth,height=pageheight,left=pixelsfromleft,top=pixelsf romtop,scrollbars=yes/no,resizable=yes/no')">Enter</a><br />
<br />
eg.<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onClick="window.open('http://www.google.com','Google','width=600,height=400,left=40,top=20,scrollbars=no,resizable=yes')">Enter</a><br />
<br />
Hope this helps<!--content-->It is not working because there are spaces in the line.<br />
<br />
This is working:<br />
<center><a href=http://www.htmlforums.com/archive/index.php/"#" onClick="window.open('http://www.batteredclan.co.uk/','Battered_Clan_Site','width=1024,height=575,screenX=10,screenY=100,top=100,left=10')">clan</a><br />
</center><br />
<br />
Notice the underscore _<br />
'Battered_Clan_Site'<br />
So now it is one textline.<br />
<br />
:rocker:<!--content-->
 
Back
Top