Make a whole div clickable in order to launch a _blank document
08
June
2013

Html & Javascript code

<div onclick="window.open('http://www.test.com','new_window');" style="display:block; height:40px; width:100px; cursor:pointer;">test</div>
  • 879 View
  • Pin It