How do I make a div link open in a new tab Javascript onClick="window.location
onclick="window.open('http://google.pl', '_blank');"
<div id="facebook" style="cursor:pointer;" onClick="window.open('http://www.google.com','_newtab');">Test</div>
onclick="window.open('http://google.pl', '_blank');"
<div id="facebook" style="cursor:pointer;" onClick="window.open('http://www.google.com','_newtab');">Test</div>