日期:2014-05-16 浏览次数:20414 次
<form action="" method="post" name="myform" >
<a href="" id=links >点击 </a >
</form >
<script >
document.getElementById("links").href="http://www.google.com";
</script >
------解决方案--------------------
window.onload=function()
{
   var theLink=document.getElementById("myLink");
   theLink.onmouseover=function()
   {
      this.setAttribute("href","google.com");
      this.innerHTML="link to google.com";
   }
}