JSFiddle - React, Tailwind, and code Playground

by roberkules

JavaScript

var newWindow = window.open('http://www.google.com/', 'the_new_window');
if (newWindow) {
    //console.log(newWindow);
    setTimeout(function() {
      //  console.log(newWindow);
        // Is there a way to detect if newWindow was blocked?
    }, 500);
}