What is the Difference between onclick and href="javscript:function name ?
Posted
by Shyju
on Stack Overflow
See other posts from Stack Overflow
or by Shyju
Published on 2010-04-05T15:59:39Z
Indexed on
2010/04/05
16:03 UTC
Read the original article
Hit count: 145
JavaScript
|page-performance
Is there any difference between
1 : <a href="javascript:MyFunction()">Link1</a>
and
2 : <a href="#" onclick="MyFunction()">Link2</a>
? Would one affect the page performance by any means ?
© Stack Overflow or respective owner