How do I load another page on the onClick event in Javascript?
<div id="div_man" onclick="/subfolder/index.htm"></div>
The code above is not working. Please explain. I am sure it's quite simple. Thanks in advance!
<div id="div_man" onclick="location.href='/subfolder/index.htm'"></div>
Here's a working example: http://jsfiddle.net/ArtBIT/EEjyP/
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