보통 팝업 차단여부는
var win = window.open();
if(win == null){
...
}
식으로 win 객체가 널일 경우 오류메세지를 띄워주는 식으로 했는데
구글 크롬은 null 이 아닌 상태로 블럭이 된다
간단하게는 win.outerWidth == 0 로 확인가능
블럭된 경우에는 위의 값이 0 으로 된다
기타 경우도 고려한 자세한 블럭여부 판단은 아래 소스에서
http://stackoverflow.com/questions/668286/detect-blocked-popup-in-chrome
- 2010/10/22 15:38
- nezah.egloos.com/4484005
- 덧글수 : 0




