Javascript:void(0) meaning -


this question has answer here:

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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -