I'm trying to remove the toolbar and scrollbar and set the size of my popup window using javascript. I have a image that has links on it and when you click on a link it pops up a new window.
Here is my code:
<script language="JavaScript"><!--
function P(url,h,w) { // (url,height,width)
var p = "height=100" + h + ",width=100" + w + ",scrollbars=no";
window.open(url,"",p);
} // -->
</script>
Html Code:
<map name="FPMap0">
<area href="javascript
('Hole1.html',100,500)" shape="circle" coords="33, 173, 17" target="_blank">
</map>
It's not working I just go to a page cannot be displayed page. Does anyone see what I did wrong?
Thanks in advance,
Kelly
Here is my code:
<script language="JavaScript"><!--
function P(url,h,w) { // (url,height,width)
var p = "height=100" + h + ",width=100" + w + ",scrollbars=no";
window.open(url,"",p);
} // -->
</script>
Html Code:
<map name="FPMap0">
<area href="javascript

</map>
It's not working I just go to a page cannot be displayed page. Does anyone see what I did wrong?
Thanks in advance,
Kelly