Click to See Complete Forum and Search --> : the calling


zaddock
12-18-2003, 01:35 AM
in html we call function with "onclick=thefunction()" ok?
but I don't know why sometimes people add ";return true" or ";return false" after call the function?

or use this way:"onclick=return thefunction()"
why use "return" ?

can u help me understanding these?

Pittimann
12-18-2003, 03:14 AM
Hi!

Please have a look at:
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/stmt.html#1004871

Cheers - Pit