[Solved] where does the return of onclick=”return false” go? [duplicate]


You are disabling the default function of the click event by returning false on click.

for example :

<a id="btn_save" href="http://www.google.com" onclick="return false;" title="">Save</a>

Even though the points to google.com, when you click the link , it won’t take you to google.com. i.e. the default action is returned false.

It’s similar to event.preventDefault()

solved where does the return of onclick=”return false” go? [duplicate]