Following code is not working in firefox 41.0.2
Code is working in chrome
Jquery code page link
http://api.jquery.com/event.preventDefault/
<div id="log"></div>
<script>
$( "a" ).click(function( event ) {
event.preventDefault();
$( "<div>" )
.append( "default " + event.type + " prevented" )
.appendTo( "#log" );
});
</script>