window.open이 브라우저에 의해 차단된 사용자 정의 알림 효과 코드
Gmail의'아이고'는 클래식이지만, 전날 심운은 더 멋진 힌트를 줬다=.브라우저를 켜서 차단한 후 테스트해 보세요. 온라인 리더에서는 코드가 필터를 줄지 안 줄지 모릅니다.코드는 아래에 있지만, 사실 아무런 기술적 함량도 없다.하하...
window._open=window.open;
window.open=function(sURL,sName,sFeatures,bReplace){
if(sName==undefined){sName="_blank"};
if(sFeatures==undefined){sFeatures=""};
if(bReplace==undefined){bReplace=false};
var win=window._open(sURL,sName,sFeatures,bReplace);
if(!win){
alert(' ! , , ! ~~555~');
return false;
}
return true;
}
=.=윈도우를 다시 씁니다.오픈은 이틀 동안 더 좋은 방법을 생각해 내지 못했다. 매개 변수는 하나씩 더하고 네 번째 매개 변수는 백이 돌아가지 않기 위해서인 것 같다. 예를 들어 다음과 같다.
4
window.open("a.html","a");
window.open("b.html","a","",true);
열린 b.html은 후퇴 없이 누르면 됩니다. MSDN에 설명이 있습니다.Optional. Boolean that specifies whether the sURL creates a new entry or replaces the current entry in the window's history list. This parameter only takes effect if the sURL is loaded into the same window.
true sURL replaces the current document in the history list
false sURL creates a new entry in the history list.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.