无提示关闭网页窗口的问题,在线等待中……
index.htm页面源代码
<head>
<title>sss</title>
<script language="javascript">
function openwindow(aspx)
{
var win=window.open(axpx,'window','height=400,width=670,top=180,left=177,toolbar=no,resizable=no,scrollbar=no,status=no);
window.opener=null;
window.focus();
window.close();
}
</scipt>
<body onload="openwindow('my.aspx')">
</body>
功能描述:
访问这个页面(index.htm)时,通过openwindow函数打开my.aspx页面,之后通过window.close再关闭index.htm。
目的:
用户访问时,打开时index.htm时,看不到它,而是只看到my.aspx这个窗口。
存在的问题:
运行关闭window.close代码时,总是弹出“你正在关闭当前窗口”的提示,这样用户就要点“是”,才能关闭窗口。
需要解决的问题:
如何做到无提示关闭页面。