lindamoran
01-23-2005, 04:54 AM
I have this link that opens a cgi script in a new window. However, I'd like to be able to control the size of the window. Here is the link:
<h3><a href="http://www.lindamoran.net/cgi-bin/LMshowlink.cgi" target="_blank">Link to this page</a></h3>
In the Castro book it says you can do so with javascript. I do not know javascript at all. I can't seem to get the syntax right. I think maybe I'm not getting the target correct. Below is one example of what I've tried.
<h3><a href="javascript:location='alovingfather.html';
window.open('http://www.lindamoran.net/cgi-bin/LMshowlink.cgi', '_blank', 'height=300, width=300, scrollbars=yes, resizable=yes')">Link to this page</a></h3>
Would a kind person give me the right syntax? Thanks. (Or perhaps another way to do it without javascript?)
Linda Moran (http://www.lindamoran.net)
<h3><a href="http://www.lindamoran.net/cgi-bin/LMshowlink.cgi" target="_blank">Link to this page</a></h3>
In the Castro book it says you can do so with javascript. I do not know javascript at all. I can't seem to get the syntax right. I think maybe I'm not getting the target correct. Below is one example of what I've tried.
<h3><a href="javascript:location='alovingfather.html';
window.open('http://www.lindamoran.net/cgi-bin/LMshowlink.cgi', '_blank', 'height=300, width=300, scrollbars=yes, resizable=yes')">Link to this page</a></h3>
Would a kind person give me the right syntax? Thanks. (Or perhaps another way to do it without javascript?)
Linda Moran (http://www.lindamoran.net)