Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2263825.FRqVoOGUtd@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 24 Feb 2012 09:41:50 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: How to write a browser based timer Newsgroups: comp.lang.javascript References: <1938225.aqSPkdTlGX@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 25 NNTP-Posting-Date: 24 Feb 2012 09:41:51 CET NNTP-Posting-Host: 0ce1747d.newsspool2.arcor-online.net X-Trace: DXC=nUIGNm4=Gaf;iVb[J9ZZP`A9EHlD;3Ycb4Fo<]lROoRa8kF var timeout = null; > > function clearMe (timeout) > { > if (timeout !== null) > { > window.clearTimeout(timeout); timeout = null; must be inserted here for the check to be reliable (as implemented with jsx.dom.timeout.Timeout). > } > } PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from (404-comp.)