有实现这种功能的javascript吗?(50分)

Q

qiqini

Unregistered / Unconfirmed
GUEST, unregistred user!
我想实现,关闭窗口时不要出现“windows.close”的提示;
另外,浏览器中的“后退”怎么使之无效
谢谢
 
第一个简单:
<!--
========================================================================
= FileName: Exit.asp =
= Author: dingbaosheng =
= Version: 1.0 =
= Date: 2002-09-02 =
= Description: 用户退出系统窗口 =
========================================================================
-->
<html>
<head>
<title>退出系统!</title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
</head>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close"></object>
<body style="font-size: 10pt;
font-family: Verdana;background-color: #396DA5;">
<%
Response.Write "<script>"
Response.Write "if(confirm('您确定要退出系统吗?')){"
Response.Write "closes .Click();} else
{"
Response.Write "window.location='login.asp';}"
Response.Write "</script>"
%>
</body>
</html>
第二个建议用WINDOWS.OPEN打开一个没有工具栏的窗口 OR 用标志判断。
 
第一个问题如果你打了IE6的补丁后就不能成功了。
第二个问题我只知道用 Windows.Open 打开窗口
 
第一个问题 还有解法的 很多
用WWW.GOOGLE.COM查一下...
不过建议用window.open打开窗口
这样的窗口就不会出现确认对话框了
 
去CSDN找一下,很多的
 
顶部