Hello all.
Which is the best practice to use when creating dynamic links i.e. onclick events.
<a href="javascript:somefunction()">click me</a>
OR
<a href="javascript:void(0)" onclick="somefunction()">click me</a>
i realise the first is not an 'event' but i have a web app which is displaying 6000 of these links all at one time and am unsure which is taking up more of my processor by dynamically creating onclick events or adding the javascript function in the href ?
also could anyone tell me if there are compatibility problems with either method. thanks for your help