I have a JSP page containing an href link. When the link is clicked, I need to call 2 javascript functions. The second javascript function should execute only if first function returns true. I have tried this:
<a href="#" onClick="return firstFunction(); secondFunction()"> Click me </a>
But this is not working. All I want is that a second function gets executed if the first function returns true.