event for imagemap
event for imagemap
is there a way to prevent the default action performed when you click
a link in an image map?
example code:
<script type="text/JavaScript" language="javascript">
$('.prevent_link').click(function(event){
event.preventDefault();
});
});
</script>
HTML:
<img src="test.jpg" alt="" width="100" height="100" border="0"
usemap="#Map">
<map name="Map" id="Map">
<area shape="rect" coords="0,0,100,100" href="index.html"
class="prevent_link" />
</map>