站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题用javascript获取传入参数

用javascript获取传入参数

摘要: 用javascript获取传入参数
<textarea readonly style="border:none;font-family:Courier New;line-height:150%;width:760px;overflow-y:visible">

<script languege=javascript>

if(getQuery("age")!='')
window.form1.age.value=getQuery("age");
else
alert("上页问题没有回答!");

if(getQuery("fromsite")!='')
window.form1.fromsite.value=getQuery("fromsite");

if(getQuery("actonweb")!='')
window.form1.actonweb.value=getQuery("actonweb");
else
alert("上页问题没有回答!");

if(getQuery("lovegame")!='')
window.form1.lovegame.value=getQuery("lovegame");
else
alert("上页问题没有回答!");


}

</script>


</textarea>
↑返回目录
前一篇: 使用 JavaScript 构建下拉菜单
后一篇: javascript引用的校验函数!