<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
function bottomForm(){
//这个a的值就是我们在输入框里面的值
var a=document.bf.key.value;
window.open("http://www.baidu.com/s?wd=" + a);
return false;
}
</script>
</head>
<body>
<form name=bf onsubmit="bottomForm()">
<table border="0" cellspacing="1" bgcolor="#52cccc">
<tr>
<td>关键字:<input name="key" value=""></td>
<td><button type="submit">百度一下</button></td>
</tr>
</table>
</form>
</body>
</html>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
function bottomForm(){
//这个a的值就是我们在输入框里面的值
var a=document.bf.key.value;
window.open("http://www.baidu.com/s?wd=" + a);
return false;
}
</script>
</head>
<body>
<form name=bf onsubmit="bottomForm()">
<table border="0" cellspacing="1" bgcolor="#52cccc">
<tr>
<td>关键字:<input name="key" value=""></td>
<td><button type="submit">百度一下</button></td>
</tr>
</table>
</form>
</body>
</html>












