兼容ie和firefox js关闭代码
人气:0搜索发现,可以这样解决:
<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>
加载全部内容