Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.uni-stuttgart.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2341534.6UFASCjf2k@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 13 Mar 2012 23:10:50 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: on*= Clauses: When to return Newsgroups: comp.lang.javascript References: <86ef4e24-2765-4403-884f-18cce40028f1@d17g2000vba.googlegroups.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 34 NNTP-Posting-Date: 13 Mar 2012 23:10:51 CET NNTP-Posting-Host: b2434720.newsspool2.arcor-online.net X-Trace: DXC=GLZgXH8Rlk`^Y=RbYBPl4`A9EHlD;3Ycb4Fo<]lROoRa8kFT8j X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:12660 David Mark wrote: > Gene Wirchenko wrote: >> David Mark wrote: >> > Gene Wirchenko wrote: >> >> Dear JavaScripters: >> >> >> >> In my working with on* clauses, one confusion I had was when to >> >> return and when not to. For example, with onblur, the return is >> >> needed, as in: >> >> >> >> >What makes you think that's needed? And for what? >> >> I want to know when it is required, and when it is not. I have >> seen it used without differentiation as to when it is required. > > Returning false prevents the default behavior for *some* events. When > and why would you want to prevent a blur? ISTM that you can't any more > than you can prevent the focus behavior. Those events are fired after > the behavior has occurred. For some event types, returning `true' does the same thing as returning `false' for others. I had started detailing this at . Any good updates are welcome. PointedEars -- realism: HTML 4.01 Strict evangelism: XHTML 1.0 Strict madness: XHTML 1.1 as application/xhtml+xml -- Bjoern Hoehrmann