<html>
<body>
<form name="a">
<input type="text" name="v" value="123">
</form> <a href="javascript:document.location='abc.asp?st='+document.all.v.value" onclick="alert('hi');">sss</a>
<input type="button" value="value">
</body>
</html>
<body>
<form name="a">
<input type="text" name="v" value="123">
</form> <a href="javascript:document.location='abc.asp?st='+document.all.v.value" onclick="alert('hi');">sss</a>
<input type="button" value="value">
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function dynamicHref(){
var sHref=document.all.v.value;
//alert('Hi');
alert(sHref);
document.all.a.action = "http://"+sHref;
document.all.a.submit();
}
//-->
</SCRIPT>
<body>
<form name="a">
<input type="text" name="v" value="www.sohu.com">
</form> <a href="#" onclick="dynamicHref();">sss</a>
<input type="button" value="value">
</body>
</html>
<body>
<form name="a">
<input type="text" name="v" value="123">
</form> <a href="#" onclick="this.href='abc.asp?st=' + document.all.v.value;alert(this.href)">sss</a>
<input type="button" value="value">
</body>
</html>
谢谢各位了!