<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>

解决方案 »

  1.   

    <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>
      

  2.   

    <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>
      

  3.   

    我用了fantiny(虽然我是菜鸟,不过我是乐于助人的菜鸟
    谢谢各位了!