第一种:

window.location.href="login.jsp?backurl=\"+window.location.href; 

第二种:

alert("返回"); 
window.history.back(-1); 

第三种:

window.navigate("top.jsp"); 

第四种:

self.location='top.htm'; 

第五种:

alert("非法访问!"); 
top.location='xx.jsp'; 

=====javascript中弹出选择框跳转到其他页面=====

<script language="javascript"> 
<!-- 
function logout(){ 
    if (confirm("你确定要注销身份吗?是-选择确定,否-选择取消"))...{ 
        window.location.href="logout.asp?act=logout" 
    } 
} 
--> 
</script>

=====javascript中弹出提示框跳转到其他页面=====

<script language="javascript"> 
<!-- 
function logout(){ 
    alert("你确定要注销身份吗?"); 
    window.location.href="logout.asp?act=logout" 
} 
--> 
</script>

 

相关文章:

  • 2022-02-24
  • 2021-09-21
  • 2022-01-10
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-05-23
  • 2021-10-07
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案