I need my HTML page to be steady whenever I click a link or a button. What should I do? I have tried one thing which is written below:
<a href="#" onclick="showTable();" return false;></a>
The above code is not working for all links, it is only working for the first anchor tag. What should I use instead of these?
The
return falsehas to be inside theonclickto block the link’s default action from executing.