help me understand JS execution on onclick event of button
- by Anil Namde
<input type="button" name="reset"
onclick="return ValidateValue(); __doPostBack('ApplyBtn','')" />
The above is the code generated for asp server button button control on browser.
Now my query is that irrespective of ValidateValue() returning true/false __doPostBack('ApplyBtn','') function is not showing any effect for me.
My understanding is that string passed to onclick acts like function body, and return will from first function will return control preventing second function from execution.
Is that correct ?
Please provide helpful inputs.