JSFiddle - React, Tailwind, and code Playground
by josh3736
HTML
<p>This is the secondary window. You've clicked the link in the first window <span>0 times</span>.</p>
<p><a href="#">Call back to main window.</a>
JavaScript
var i = 0;
function increment() {
$('span').text(++i + ' time' + (i == 1 ? '' : 's'));
}
$(function() {
$('a').click(function() {
if (opener) opener.flash();
else alert('Main window is closed.');
return false;
});
});