View Full Version : HTMl help...


twisted_dolly
07-12-2003, 11:13 AM
I need a popup window on my page. I have two links, which I both want a popup window for. As far as I know I would put this code next to my <head> tag:

<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup"," width=400,height=400,loca
tion=0,menubar=0,resizabl
e=0,scrollbars=0,status=0
,titlebar=1,toolbar=0") }
-->
</script>

And this near my link:

<a href="http://myURLhere.html" target='_blank'> Text Here </a>

Am I right(?) (Probably not). On the first code it says I need a URL for the popup window, but I have two different links on the same page for a popup window. Would I just take that part out(?) I'm no good with HTML...can someone help me(?)

Lemon Squash
07-12-2003, 11:18 AM
Your link should be <a href="javascript:popup()">Click here for popup window"</a>

twisted_dolly
07-12-2003, 11:39 AM
But if I have two links, where do I put BOTH URL's(?)

kittycat
07-12-2003, 03:25 PM
If you want 2 popup windows, you need to use the javascript code twice. So copy and paste it again, and change the values for your second page.

The window link needs to be the one that lemon squash posted, not the regular link code.