return false in if statement javascript code example
Example 1: javascript if return true false
return condition ? value : otherValue;
Example 2: javascript return false
<a href="#" onClick="function_name('parametres'); return false;">Link</a>
return condition ? value : otherValue;
<a href="#" onClick="function_name('parametres'); return false;">Link</a>