아래 기술 내용을 적용하면 IE에서는 큰 문제가 없다.
if (/MSIE/.test(navigator.userAgent)) {
if(navigator.appVersion.indexOf("MSIE 7.0")>=0 || navigator.appVersion.indexOf("MSIE 8.0")>=0) {
window.open('about:blank','_self').close();
}else {
window.close();
}
}
혹여 iframe 안에서 parent창을 닫으려고 하시면 위의 window 앞에 parent.만 붙이시면
됩니다.
오늘도 좋은 하루 보내세요.
'프로그램개발 > ClientSide(JavaScript,Angular,Vue)' 카테고리의 다른 글
jQuery : Validation remote multi data 전송하기 (0) | 2013.04.23 |
---|---|
jQuery 퍼포먼스 향상을 위한 Tips And Tricks (0) | 2013.04.23 |
유투브 동영상 아이프레임으로 추가시 레이어 위로 올리기 (0) | 2013.04.17 |
구글웹폰트 나눔폰트 적용하기 (0) | 2013.04.17 |
Bootstrap 2.0 에 대한 소개 (0) | 2012.06.19 |