代码中的JS函数表代码:
<script language ="javascript" type="text/javascript">
function setParentWin(){
//window.parent.document.getElementById("OpenWin").style.height = "300px";
window.parent.openEdit();
window.parent.showOpenSurveyListWin();
//window.parent.document.getElementById('SurveyList').display = 'block'
}function openSurvey(SID){
top.location.href = "EditSurvey.aspx?SID="+SID;
}
</script>
在后面没有对openSurvey()函数的调用,但是还是有了跳转的效果...菜鸟求教!谢谢....
<script language ="javascript" type="text/javascript">
function setParentWin(){
//window.parent.document.getElementById("OpenWin").style.height = "300px";
window.parent.openEdit();
window.parent.showOpenSurveyListWin();
//window.parent.document.getElementById('SurveyList').display = 'block'
}function openSurvey(SID){
top.location.href = "EditSurvey.aspx?SID="+SID;
}
</script>
在后面没有对openSurvey()函数的调用,但是还是有了跳转的效果...菜鸟求教!谢谢....
javascript代码默认再html文档加载完成后执行;
除非你想办法不执行这断脚本---似乎只有去掉他才可以阿,或者加执行条件