How can I write the _blank statement in this location.href call?
<div onclick="location.href='http://www.test.com';" style="display:block; height:40px; width:100px; cursor:pointer;"></div>
Please note: I need to keep the div and treat it as a href container.
When someone clicks it should open a new browser window, not a popup box.
<div onclick="window.open('http://www.test.com','new_window');" style="display:block; height:40px; width:100px; cursor:pointer;">test</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With