Re: newbie.. why "return false;" ?
- From: Nick Fletcher <titosrevenge@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 16:57:02 -0800 (PST)
On Feb 27, 6:03 pm, RobC <gro...@xxxxxx> wrote:
Hi
A newbie question.
I've seen " return false;" in several code samples (relating to
functions).
Is it required or is it optional?
What does it do?
Thanks
Rob
Returning false usually means that the function is a handler for a DOM
event and by returning false it's preventing default browser behaviour.
.
- References:
- newbie.. why "return false;" ?
- From: RobC
- newbie.. why "return false;" ?
- Prev by Date: Re: Enter/Return Key Function
- Next by Date: Changing CSS styles
- Previous by thread: Re: newbie.. why "return false;" ?
- Next by thread: block writing
- Index(es):
Relevant Pages
|