I am trying to create a tabbed page. I have the following code
<div class="profile">
<div class="profileHR" onclick="load(this)">
<a href="<c:url value="/secure/profileLink.htm"/>?show=changePassword"
target="iframeProfile">Change Password</a>
</div>
<div class="profileHR">
<a href="<c:url value="/secure/profileLink.htm"/>?show=setupHours"
target="iframeProfile">Setup Business Hours</a>
</div>
<div align="center" class="profileContent">
<iframe name="iframeProfile" src=""></iframe>
</div>
</div>
When i click on the anchor the url is forwarded to the iframe. But i want to be able to click anywhere on the div class="profileHR" and it should forward to iframe url. So i was trying to write a javascript onclick event for div, but how do i simulate the anchor event inside a javascript?