JSFiddle - React, Tailwind, and code Playground

by Emanuel Vecchio

HTML

<button id="myButton">Abrir Google en otro Tab</button>
<button id="myButton">Abrir este Fiddle en otro Tab</button>

JavaScript

$('#myButton').click(function () {
    var redirectWindow = window.open('http://google.com', '_blank');
    redirectWindow.onload = function() {
    	alert()
    };//alert.bind(window, "hola mundo");
    
    src="//fiddle.jshell.net/safeeronline/70kdacL4/2/show/"
});

$('#myButton2').click(function () {
    var redirectWindow = window.open('//fiddle.jshell.net/safeeronline/70kdacL4/2/show/', '_blank');
    redirectWindow.onload = alert.bind(window, "hola mundo");
    
   
});