喜迪情感
您的当前位置:首页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”
}
–>

显示全文