Javascript:void(0) meaning -
this question has answer here:
- what “javascript:void(0)” mean? 12 answers
i curious 1 thing happen : when hover link in bottom of page there appears javascript:void(0); mean ?
thank !
the void operator evaluates given expression , returns undefined.
usually, when want add link has "onclick" function(and no href) this:
<a href='javascript:void(0);' onclick='dosomething()'>click me</a>
clicking on return undefined href , no navigate, onclick function happen.
read this:void operator.
Comments
Post a Comment