JSFiddle - React, Tailwind, and code Playground
by Alex Alex
HTML
<a href="https://www.google.com">Open new window by javascript</a><br>
<small>(open google.com when fails)</small>
JavaScript
document.querySelector('a').addEventListener('click', function (e) {
e.preventDefault();
window.open('http://jsfiddle.net/frontenddeveloping/9awwr8rs/show');
}, false);