April 14, 2016
Occasionally, when working with javascript toggles it becomes necessary to use methods like target=”<?php echo $counter; ?>” in order to build a relationship with other elements involved.
This can cause conflicts in other browsers the deeper into compatibility testing you go.
This source touches on both methods to use. Newer browsers:
href="javascript:void(this.onclick=function(){return false;})"
Internet Explorer:
onclick="return false;"