JSFiddle - React, Tailwind, and code Playground
by Chan Wu
HTML
<a id="hinet" href="#">open hinet</a>
JavaScript
console.clear();
document.querySelector('#hinet').onclick = function () {
var popup = window.open('http://www.facebook.com/sharer/sharer.php?u=http://www.hinet.net', '', "width=400, height=400");
popup.onbeforeunload = function() {
alert('unload');
}
return false;
};