http://calmdev.com/gfy/click.php
i wouldn't suggest using js for the task, but it's possible...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Intercept Click</title>
<script type="text/javascript" src="http://assets.fit.edu/src/js/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a').click(function() {
document.location = 'http://' + $(this).attr('href');
return false;
});
});
</script>
</head>
<body>
<a href="www.google.com">Google</a>
</body>
</html>