onclick redirect to another element on the page code example
Example: javascript onclick to another page div
<div onclick="window.location.href = 'http://example.com';">Click this div to get redirected.</div>
<div onclick="window.location.href = 'http://example.com';">Click this div to get redirected.</div>