Skip to content Skip to sidebar Skip to footer

How Do I Make A Div Link Open In A New Tab Javascript Onclick="window.location

I created a range of social media buttons which when the mouse hovers it switches to a different image (giving it a highlight effect). The images work as I want them to, however, I

Solution 1:

onclick="window.open('http://google.pl', '_blank');"

Solution 2:

<div id="facebook" style="cursor:pointer;" onClick="window.open('http://www.google.com','_newtab');">Test</div>

Post a Comment for "How Do I Make A Div Link Open In A New Tab Javascript Onclick="window.location"