Click to See Complete Forum and Search --> : Controling Link window size


dante
02-18-2003, 11:48 AM
Hi guys. Im new to the board. Im just starting my first web site at work and have,what I think,is a simple question. I have a link page with 3 links on it linking a image to a different web site. I dont want customers to link to another site and leave ours entirely. So I put in a target tag like this

<a href="http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2001/02/16/WB164580.DTL"TARGET=links>

Sorry for the length of that. It works fine but it takes up the whole page so the person actually thinks they left the site. Im sure there is a easy way in javascript to control the size of the window to make it smaller. I tried what it said in the Javascript for controling image windows but I cant get it to work with links. Can anyone help me with this? Thanks


Sam

Charles
02-18-2003, 11:57 AM
<a href="http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2001/02/16/ WB164580.DTL" onclick="window.open(this.href, 'child', 'height=300,width=200,scrollbars'); return false">Darling, you send me.</a>

dante
02-18-2003, 12:12 PM
Thank you very much Charles. Can you recomend a good book to get for javascripting? The one I have now is "JavaScript for the world wide web" by Tom Negrino and Dori Smith.

Thanks again :D

dante
02-18-2003, 12:26 PM
Hi Charles. Is there a way to make the web page that I am linking to fit the window? Or a way to activate the middle box at the top right of the window so the person can make the window full size??? Hate to bother you again. Thanks

Sam