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>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to