怎么实现windows.close()关闭窗口时不弹出对话框
2013-08-21
展开全部
ASP:<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd">
<html>
<object type="application/x-oleobject" id=closes classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="command" value="close">
</object>
<script language="javascript">
function MM_c()
{
closes.click() ;
}
</script>
<body>
<table width="502" height="90" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="21"><div align="center">
<input type="button" name="Submit" value="关闭" onClick="MM_c();">
</div></td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd">
<html>
<object type="application/x-oleobject" id=closes classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="command" value="close">
</object>
<script language="javascript">
function MM_c()
{
closes.click() ;
}
</script>
<body>
<table width="502" height="90" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="21"><div align="center">
<input type="button" name="Submit" value="关闭" onClick="MM_c();">
</div></td>
</tr>
</table>
</body>
</html>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询