How to call javascript from a href?
like:
<a href="<script type='text/javascript'>script code</script>/">Call JavaScript</a>
question from:https://stackoverflow.com/questions/16337937/how-to-call-javascript-from-a-hrefHow to call javascript from a href?
like:
<a href="<script type='text/javascript'>script code</script>/">Call JavaScript</a>
question from:https://stackoverflow.com/questions/16337937/how-to-call-javascript-from-a-href<a onClick="yourFunction(); return false;" href="fallback.html">One Way</a>
** Edit **
From the flurry of comments, I'm sharing the resources given/found.
Previous SO Q and A's:
Interesting reads: