我想打开一个页面带参数
<script Language= "JavaScript ">
function processForm(form){
var type;
if (xf> 70) type =A;
if (60> xf> 50) type =B;
if (40> xf> 30) type =C;
if (20> xf> 10) type =D;
if (xf <10) type =E;
window.open( "frank.asp?Type= "+ type , "aaa ", " ")
} </script>
这样会报错???
------解决方案--------------------
<script Language= "JavaScript ">
function processForm(form){
var type;
if (xf> 70) type = "A ";
if (xf <60 && xf> 50) type = "B ";
if (xf <40 && xf> 30) type = "C ";
if (xf <20 && xf> 10) type = "D ";
if (xf <10) type = "E ";
window.open( "frank.asp?Type= "+ type , "aaa ", " ")
} </script>