asp.net如何实现点击按钮关闭当前网页页面
发布网友
发布时间:2022-05-13 05:05
我来回答
共3个回答
热心网友
时间:2022-04-27 14:27
兼容ie和firefox js关闭代码
<script language="javascript" type="text/javascript">
function closeWindow() {
window.open('','_parent','');
window.close();
}
</script>
<a href="javascript:closeWindow();">Close Window</a>
好多朋友用到是自动关闭页面代码
<script language="javascript">
function closeWindow(){
window.open('','_parent','');
window.close();
}
setTimeout("closeWindow()",3000);
</script>
热心网友
时间:2022-04-27 15:45
Response.Write("<script>window.close()</script>");
热心网友
时间:2022-04-27 17:20
Page.RegisterStartupScript("close ", " <script> window.opener=null;window.top.close() </script> ");