Created
June 25, 2018 15:55
-
-
Save Troland/20f311c4f4263e6fd6da03c5922bb487 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 isPopWindowBlocked() { | |
| const win = window.open(url, '', ''); | |
| return win === null; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment