<input type="button"name="B"id="B" onclick="aa()"/>fuction aa()
{
var tmp = document.getElementById("T");
var url = "b.aspx?para="+tmp.value;
window.location = url;
}代码没试,基本思路是:在button的onclick事件中取得text的输入值,并构造要跳转的url。然后跳转。在B页面取得参数然后处理。
{
var tmp = document.getElementById("T");
var url = "b.aspx?para="+tmp.value;
window.location = url;
}代码没试,基本思路是:在button的onclick事件中取得text的输入值,并构造要跳转的url。然后跳转。在B页面取得参数然后处理。
<script language="javascript">
fuction aa()
{
var tmp = document.getElementById("T");
var url = "b.aspx?para="+tmp.value;
window.location = url;
}
</script>