第1个回答 2008-09-03
<script language="javascript">
function sendValue()
{
var aaa = document.all.aaa.value;
var bbb = document.all.bbb.value;
window.location = "/query_2.jsp?id=aaa & aaa= "+aaa+" &bbb= "+bbb;
}
</script>
<html>
<input type="text" name="aaa" value="abc">
<select name="bbb">
<option value="bbb">bbb</option>
</select>
<a href="sendValue()">快过去</a>
</html>本回答被网友采纳
第2个回答 2008-08-28
<!-- 单引号",要改知道哈, 只写个INPUT, SELECT 通理哈 -->
<script type="text/javascript">
function forwardPage() {
var id = document.getElementById("inputID");
window.document.location = "query_2.jsp?id=" + id;
}
</script>
<input id="inputID" type="text" value="whatever" />
<select id="selectID">
<option value="1">option 1</option>
</select>
<a href="javascript:forwardPage();">Go Go Go</a>本回答被提问者采纳