how do i....

liunx

Guest
have a link open into a new window of a certain size <br />
<br />
<br />
i know how to have a link open in a new window, but how do i specify the size of the window?<br />
<br />
i remember doing this with some javascript a while ago...can someone refresh my memory with a couple of lines of code?<br />
<br />
<br />
thanks!<!--content--><html><br />
<head><br />
<title>pop-up</title><br />
<script language ="javascript"><br />
function pop_up(){<br />
win = window.open("http://www.volcanic-design.com", "dep", "height=100,width=200", hotkeys="no");<br />
}<br />
</script><br />
</head><br />
<h3>pop-up</h3><br />
<body"><br />
<form name="form1" action="" method=""><br />
<input type="button" name="button2" value="pop-up" onclick="pop_up()"><br />
</form><br />
</body><br />
</html><!--content-->You can do it like this also:<br />
<br />
<A HREF=http://www.htmlforums.com/archive/index.php/"#a" onClick="window.open('wahtever.htm', 'myWin', 'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=no, width=700, height=450')">Link here</a><br />
<br />
Play around with the variables as well.<!--content-->
 
Back
Top