Hello. I try to change href attribute value of anchor link for directing another url rather than the one specified in html document. Below code didnt work. What am I doing wrong?
Thanks in advance.

<!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">
<head>


<script type="text/javascript">

function redirecting(){
document.first.href="http://www.google.com";
}

</script>


</head>
<body>

<a href="http://www.yahoo.com" name="first" onClick="redirecting();" >Yahoo</a>


</body>
</html>