国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
轉(zhuǎn)載 JS關(guān)閉窗口或JS關(guān)閉頁面的幾種代碼

//JS關(guān)閉窗口或JS關(guān)閉頁面的幾種代碼

 JS定時(shí)自動(dòng)關(guān)閉窗口 
<script language="javascript"> 
<!-- 
function closewin(){ 
self.opener=null; 
self.close();} 
function clock(){i=i-1 
document.title="本窗口將在"+i+"秒后自動(dòng)關(guān)閉!"; 
if(i>0)setTimeout("clock();",1000); 
else closewin();} 
var i=10 
clock(); 
//--> 
</script> 

第二種:點(diǎn)擊鏈接沒有提示的JS關(guān)閉窗口
<a href="javascript:self.close()" >關(guān)閉窗口</a>

第三種:窗口沒有提示自動(dòng)關(guān)閉的js代碼 
<script language=javascript>   
<!--   
this.window.opener = null;   
window.close();   
//-->   
</script>

IE6-7 JS關(guān)閉窗口不提示的方法

方法一: 
js 代碼 濟(jì)寧網(wǎng)站制作 
function CloseWin() //這個(gè)不會(huì)提示是否關(guān)閉瀏覽器     
{     
window.opener=null;     
//window.opener=top;     
window.open("","_self");     
window.close();     
}    

方法二: 
open.html 
js 代碼 
function open_complex_self() {     
  var obj_window = window.open('close.html', '_self');     
  obj_window.opener = window;     
  obj_window.focus();     
 }    

close.html 
js 代碼 
window.close(); 

另附: 
//普通帶提示關(guān)閉 
function closeie(){ 
window.close(); 
} 
//關(guān)閉IE6不提示 
function closeie6(){ 
window.opener=null; 
window.close(); 
} 
//關(guān)閉IE7不提示 
function closeie7(){ 
window.open('','_top'); 
window.top.close(); 
}

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
window.opener 的用法
window.close(); 關(guān)閉瀏覽器窗口JS代碼的分析總結(jié)(轉(zhuǎn))
徹底理解js中this的指向
JavaScript函數(shù)自調(diào)用
js關(guān)閉窗口
圖片延遲加載實(shí)現(xiàn)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服