This is usually caused by lazy devs who use
<div class="mybutton"><a href="javascript:dosomefoo();">foo</a></div>
instead of <div class="mybutton" onclick="dosomefoo();" style="cursor:pointer;">foo</div>
It's also possible they were trying to support old versions of MSIE in the former.