Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: DOM styling modified by JavaScript does not affect first rendering Date: Sat, 01 Nov 2014 15:23:50 +0100 Organization: PointedEars Software (PES) Lines: 35 Message-ID: <1487860.gEOcuQC4dx@PointedEars.de> References: <0Qpl$Ta+fVUUFw8H@invalid.uk.co.demon.merlyn.invalid> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1414851830 13720 eJwNyscRwDAMA7CVrEKVcazouP8IDt6AhcSXHggHwSxSm1eJ1mnPKL3YytlpORkK+4evWKPPPhcmEJE= (1 Nov 2014 14:23:50 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 1 Nov 2014 14:23:50 +0000 (UTC) User-Agent: KNode/4.14.1 X-User-ID: eJwNydEVADEEBMCWCLuiHLzov4S7+R0YlRNO0LHY00pCuNV/eEoeleqZqw2vnfM0zPIebOPVRkcpLcOkLuwDOnsUxg== Cancel-Lock: sha1:I94pIcM6ZG6nF2CvUVJo0xyZQhY= X-NNTP-Posting-Host: eJwFwYERADAEBLCV6uof46DsP0ITXArblKBisYOj49W0IL3U87U74myBBOTupNXAwlImPhg4EPo= Xref: csiph.com comp.lang.javascript:26072 Christoph M. Becker wrote: > Evertjan. wrote: >> > onload='document.body.style.display="block"'> >> >> works fine here, however: >> >> > onload='this.style.display="block"'> >> >> cannot be used, why is that? >> >> cann't we use "this" in a onload? > > In this case /this/ is bound to the window object, Probably yes. > because the onload attribute of the body elements maps to the load event > of the window object. No. > Test: > > Non sequitur. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not Cc: me. / Bitte keine Kopien per E-Mail.