<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
}
}