lilrobson
08-28-2002, 12:52 AM
Okay, I've been having the biggest problem with this and I'm sure there's a really simple solution. I have the code correct for the pop up window to appear if there's a text link, but what if I wanted an image map to target the pop up instead? How would I change my script?
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
}
</script>
<a href="java script:openpopup()">Click here to open window</a>
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
}
</script>
<a href="java script:openpopup()">Click here to open window</a>