<form action="" method="post" name="myform" >
<a href="" id=links >点击 </a >
</form >
<script >
document.getElementById("links").href="http://www.google.com";
</script >