当前位置: 代码迷 >> ASP >> window.open参数的小疑点
  详细解决方案

window.open参数的小疑点

热度:355   发布时间:2012-02-05 12:07:14.0
window.open参数的小问题
我想打开一个页面带参数    

<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>
  相关解决方案