<html>
<head>
</head>
<body>
<script>
function submit(e) {
var input1 = document.getElementById("inputid");
var age = e.elements[1].value;
window.open("b.html?inputstr="+age); //传入参数
}
</script>
<input type = "text" id = "inputid">
<input type = "button" onclick="submit(3)" value = "提交">
</body>
</html>