<script language="javascript" type="text/javascript">
<!--
var FPathNo = [color=#FF0000]"TOPCAN-A";[/color]
function Btn_PathWP_onclick() {
window.open('../Query/PathWpQuery.aspx?FPathNo='+ FPathNo,'','width=400,height=300,left=400,top=200,scrollbars=1,status=1,resizable=1');
}// -->
</script>
如何 FPahNo能够获得前台 txtBox的值呢???
<!--
var FPathNo = [color=#FF0000]"TOPCAN-A";[/color]
function Btn_PathWP_onclick() {
window.open('../Query/PathWpQuery.aspx?FPathNo='+ FPathNo,'','width=400,height=300,left=400,top=200,scrollbars=1,status=1,resizable=1');
}// -->
</script>
如何 FPahNo能够获得前台 txtBox的值呢???
不成功啊,传到的值为undefined
<script language="javascript" type="text/javascript">
<!--
var FPathNo = document.getElementById("txt_FPathNo").value;
function Btn_PathWP_onclick() {
window.open('../Query/PathWpQuery.aspx?FPathNo='+ FPathNo,'','width=400,height=300,left=400,top=200,scrollbars=1,status=1,resizable=1');
}
// -->
</script>B界面接收:
string aa = Request.Params["FPathNo"].ToString();
var FPathNo = document.getElementById('txt_FPathNo').value;
是可以的,只是我变量放错地方。现在解决啦