<!DOCTYPE html>
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
<a href="www.google.ca">a link!!</a>
<br>
<script>
$(function () {
$('a').each(function() {
var $this = $(this),
href = $this.href;
$this.removeAttr('href').click(function() {
window.location = href;
});
});
});
</script>
</body>
</html>