3 ms·
I usually tack on "return false;" to the onclick action to prevent the browser from actually navigating to '#'. Not sure if this is the recommended/best way, bu
by d_r 16y ago
I usually tack on "return false;" to the onclick action to prevent the browser from actually navigating to '#'. Not sure if this is the recommended/best way, but it works.
E.g.
<a href="#" onclick="doSomething(); return false;">test</a>