<script language="javascript">
<!--
function logout(){
if (confirm("你确定要注销身份吗?/n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
=====javascript中弹出提示框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
alert("你确定要注销身份吗?");
window.location.href="logout.asp?act=logout"
}
-->
</script>
=====ASP中直接跳转到其他页面===========
<%
response.redirect "logont.asp"
%>
=====Html中确认后弹出新页面===========
function Del(id)
{
if (confirm("你确定要删除吗?"))
{
window.open("otherfile.asp?ID="+id+"&act=del","top","width=640,height=400")
}
}
=====Html中确认后跳转到其他页面=========
function Del(URL)
{
if (confirm("你确定要删除吗?"))
{
//URL="otherfile.htm"
window.location.href=URL
}
}
本文介绍了使用不同编程语言和技术实现页面跳转的方法,包括JavaScript中的确认框跳转、提示框跳转,ASP中的直接跳转,以及HTML中的确认框跳转等。这些方法适用于多种应用场景,如用户注销、数据删除等操作。
586

被折叠的 条评论
为什么被折叠?



