Script
<script> function openInNewTab(url) { var win = window.open(url, '_blank'); win.focus(); } </script> <div style="cursor: pointer;" onclick="openInNewTab('https://google.com');">google.com</div>
Demo
click: google.com
<script> function openInNewTab(url) { var win = window.open(url, '_blank'); win.focus(); } </script> <div style="cursor: pointer;" onclick="openInNewTab('https://google.com');">google.com</div>