PDA

View Full Version : Image mapping targeting a pop up window with no scrollbars


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>

boywonder
08-28-2002, 01:16 AM
when you define the image map areas they have href attributes right? so put "javascript:openpopup();" as the href for the area. Does that help?