I have more than a few doubts regarding javascript:void(0). the following are my doubts.
- I know it returns "undefined" but what is the significance of it. Or in other words, at what sitiation or circumstance do we use javascript:void(0); what exactly does the programmer want when he uses javascript:void(0)
- I'm asking this question because i dont have a clear understanding of javascript:void(0) and it might be stupid. But what would happen if i use javascript:myFunction("some argument") instead.
like for example
<a href="javascript:myFunction("args")"></a>
please focus more on the second part.