Skip to content

Instantly share code, notes, and snippets.

@jihao
jihao / jQuery.ready.js
Created December 13, 2011 05:12
jQuery.ready.js
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("a").click(function(event){
alert("As you can see, the link no longer took you to jquery.com");
event.preventDefault();
});
});
</script>