45fan.com - 路饭网

搜索: 您的位置主页 > 网络频道 > 阅读资讯:如何能够解决跳转javascript ASP页面的问题?

如何能够解决跳转javascript ASP页面的问题?

2016-08-24 13:30:02 来源:www.45fan.com 【

如何能够解决跳转javascript ASP页面的问题?

 

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

<scriptlanguage="javascript">

<!--

functionlogout(){

if(confirm("你确定要注销身份吗?/n是-选择确定,否-选择取消")){

window.location.href="logout.asp?act=logout"

}

}

-->

</script>

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

<scriptlanguage="javascript">

<!--

functionlogout(){

alert("你确定要注销身份吗?");

window.location.href="logout.asp?act=logout"

}

-->

</script>

=====ASP中直接跳转到其他页面===========

<%

response.redirect"logont.asp"

%>

=====Html中确认后弹出新页面===========

functionDel(id)

{

if(confirm("你确定要删除吗?"))

{

window.open("otherfile.asp?ID="+id+"&act=del","top","width=640,height=400")

}

}

=====Html中确认后跳转到其他页面=========

functionDel(URL)

{

if(confirm("你确定要删除吗?"))

{

//URL="otherfile.htm"

window.location.href=URL

}

}

本文地址:http://www.45fan.com/a/question/66875.html
Tags: 页面 JavaScript asp
编辑:路饭网
关于我们 | 联系我们 | 友情链接 | 网站地图 | Sitemap | App | 返回顶部