<a href="" id=links >
信息提示 </a >
< /form >
< script >
document.getElementById("links").href="http://www.baidu.com";
< /script >
js实现给<a href=""> href赋值
document.getElementById("a").href=""; a是要添加超链接a的id,比如<a id='a' >信息提示</a>
<form action="" method="post" name="myform" >
alert(window.location.href);