您好,欢迎来到喜迪情感。
搜索
您的当前位置:首页javascript跳转代码集合_javascript技巧

javascript跳转代码集合_javascript技巧

来源:喜迪情感


第一种:

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中弹出选择框跳转到其他页面=====


function logout()…{
if (confirm(”你确定要注销身份吗?是-选择确定,否-选择取消”))…{
window.location.href=”logout.asp?act=logout”
}
}
–>

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

function logout()…{
alert(”你确定要注销身份吗?”);
window.location.href=”logout.asp?act=logout”
}
–>

Copyright © 2019- xdyj.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务