<a href="#" onClick="load_page()">intro</a>
I don't want to print # sign on URL, I wanted it to look like below :
But it looked like this
Anyway to do this?
Change the URL to:
<a href="/" onClick="load_page(); return false;">intro</a>
One popular way is to assign
Another one is to prevent anchor default action via
return false in click handler as jacouh answered. I would prefer the second way as more clean.