Created
August 16, 2013 03:22
-
-
Save thirdj/6247017 to your computer and use it in GitHub Desktop.
브라우저 현재 작업창 닫기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| $('#window-btn').click(function(){ | |
| if ( $.browser.msie ) { | |
| window.opener='Self'; | |
| window.open('','_parent',''); | |
| window.close(); | |
| } else { | |
| window.close(); // 일반적인 현재 창 닫기 | |
| window.open('about:blank','_self').self.close(); // IE에서 묻지 않고 창 닫기 | |
| } | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment