首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

window.open参数的小疑点

2012-02-05 
window.open参数的小问题我想打开一个页面带参数scriptLanguage JavaScript functionprocessForm(for

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>

热点排行
Bad Request.