M
moondaddy
I have an asp.net 2.0 application and put a html button on a web page. I
double clicked on the button and it crated the event handler for me and
created the stub js function for it like this:
<input id="btnQryFunctions" type="button" value="Query Functions"
language="javascript" onclick="return btnQryFunctions_onclick()" />
and the function it created was:
function btnQryFunctions_onclick() {
}
Question: why did it create this code? onclick="return
btnQryFunctions_onclick()"
Normally I would have just written: onclick="btnQryFunctions_onclick()" with
out the 'return'. What does the word 'return' do for me in this case?
Thanks.
double clicked on the button and it crated the event handler for me and
created the stub js function for it like this:
<input id="btnQryFunctions" type="button" value="Query Functions"
language="javascript" onclick="return btnQryFunctions_onclick()" />
and the function it created was:
function btnQryFunctions_onclick() {
}
Question: why did it create this code? onclick="return
btnQryFunctions_onclick()"
Normally I would have just written: onclick="btnQryFunctions_onclick()" with
out the 'return'. What does the word 'return' do for me in this case?
Thanks.