function submit() {
var textValue = document.getElementById("id").value; //这里的id是文本输入框的id ?
//使用下面的方法进行页面跳转,页面跳转的时候可以带参数,所以就可以提交数据 ?
window.location.href="result.jsp?text="+textValue;
利用js提交请求(非ajax)
原文地址:http://www.cnblogs.com/lyaml/p/7654475.html