<script language="javascript">
<!--
function logout(){
if (confirm("你确定要注销身份吗?\n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>用window.location.href或者<%response.redirect "logont.asp"%>
<!--
function logout(){
if (confirm("你确定要注销身份吗?\n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>用window.location.href或者<%response.redirect "logont.asp"%>
解决方案 »
- 求解 EXTJS 3.0 这个错误:Uncaught TypeError: Cannot set property 'width' of undefined
- html5会淘汰flash吗
- jquery如何过滤style="display: none;"的项
- javascript中怎样取到数组中的最后一个数
- 在文件上传前能否更改file
- 关于javascript 操作EXCEL的问题,急!!!!
- 请教一个数组问题
- 請問要加這樣的限制怎么做啊?
- 能不能够在JAVASCRIPT中调用WEB SERVICE,怎么调用?
- 为什么bugger不被执行?
- 在线等:为何图片载入时缩放失效?
- 怎么在servlet 页面出现windowns提示框
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head><script type="text/javascript" language="javascript">
function quitRedirect(sUrl)
{
if(window.name!="ojlovecd")
{
window.name="ojlovecd";
}
else
{
window.location.href=sUrl;
}
}
</script><body onload="quitRedirect('http://www.csdn.net');">
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<script language="javascript">
function quitRedirect(sUrl){
location.href=sUrl;
}
</script>
<body onbeforeunload="javascript:quitRedirect('/HertsTestFile/1.asp')">
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<script language="javascript">
function quitRedirect(sUrl){
window.location.href=sUrl;
}
</script>
<body onbeforeunload="javascript:quitRedirect('/HertsTestFile/1.asp')">
</body>
</html>