HTML Help : How to open up new window with restricted size

liunx

Guest
I am pretty new to HTML. So pl pardon if this is a rather silly query.<br />
<br />
I have a link in my web page. My requirment is that when the user clicks a link, a smaller window must must open up with details of that link. How do we create this smaller window ? How do we restrict its size ?<br />
<br />
The <br />
<AHREF TARGET="_blank"..<br />
<br />
does open up a new window. But it opens up a full size window which I do not want.<br />
<br />
Pl help me out.<br />
<br />
Thanks.<!--content-->Hey, <br />
<br />
If you go to:<br />
<br />
<!-- m --><a class="postlink" href="http://javascript.internet.com/master-list/v-master-list.html">http://javascript.internet.com/master-l ... -list.html</a><!-- m --><br />
<br />
and search for pop up, there is a nice little bit of javascript code that will do exactly what you want. You can set the height and width of the window. Then, simply call this javascript function from a hyperlink using the onClick event. Like....<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"page.html" onClick = "javascript:popup(page)">Link</a><br />
<br />
Hope this helps you out, good luck.<!--content-->You could also just keep using that window.open function, and specify the width and height, this will make the screen pop up the size you want. Send open the name of the page you want to show on it too, that might be easier.<!--content-->yep, javascript.internet.com is a good site... if you havn't figured it out well its pretty simple<br />
<script language="javaScript"><br />
<!--<br />
window.open('online/l2kpopup/popup1.html','','width=411,height=270');<br />
//--><br />
</script><br />
this opens a unsizable window w/ width of 411 and height of 270<!--content-->
 
Back
Top