How to make HTML page steady on all browsers?
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();" ret开发者_JAVA百科urn 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 false
has to be inside the onclick
to block the link's default action from executing.
<a href="#" onclick="showTable(); return false;"></a>
精彩评论