<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>
<input type="text" name="ch" value="">
<input src="ii.gif" name="ff" onClick="window.location.href='frm.ch.value'">
</form>
<%@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>