href 怎么能给赋值 帮看看代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<link id="w" name="w" href="" type="text/javascript" rel="canonical" />
<link rel="canonical" href="http://www. />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script>
function f2()
{
document.getElementById("d1").href="http://www.baidu.com";
}
</script>
</head>
<body onload="f2()">
<a href="" id="d1">aa</a>
</body>
</html>