div onclick event javascript
Div onclick event
div onclick event javascript
How to give link on div
how to target open div in new window javascript
// Simulate a mouse click:
window.location.href = “http://www.eyeshiv.com”;
// Simulate an HTTP redirect:
window.location.replace(“http://www.eyeshiv.com”);
Linking on Div Through Javascript
First Method is
onclick="location.href='http://www.eyeshiv.com';" style="cursor:pointer;"
-
Open in New Window
onclick="window.open('https://stackoverflow.com/q/4907843/456814');"
click