<form name="frm" method="post">
<input type="text" name="ch" value="">
<input src="ii.gif" name="ff" onClick="window.location.href='frm.ch.value'">
</form>

解决方案 »

  1.   

    更正:
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="CP_ACP"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head>
    <script language="JavaScript">
    function redrect(frm){
    if(frm.ch.value!="")
     window.location.href=frm.ch.value
    }
    </script>
    <body>
    <form name="frm" method="post">
    <input type="text" name="ch" value="">
    <input   name="ff" type="button" onClick="redrect(frm)">
    </form>
    </body>
    </html>
      

  2.   

    非常感谢x_gn!第二段确实可以实现,但是如果不用按钮而用图片做链接的话,还是不能实现。