Skip to content

Instantly share code, notes, and snippets.

@Troland
Created June 25, 2018 15:55
Show Gist options
  • Select an option

  • Save Troland/20f311c4f4263e6fd6da03c5922bb487 to your computer and use it in GitHub Desktop.

Select an option

Save Troland/20f311c4f4263e6fd6da03c5922bb487 to your computer and use it in GitHub Desktop.
判断弹出窗口是否被浏览器拦截
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