第一个简单:
<!--
========================================================================
= 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 用标志判断。