Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <4184835.WkiscCUh0q@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 16 Feb 2013 23:05:28 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <511fd01b$0$6552$9b4e6d93@newsspool4.arcor-online.net> <84c1fef2-67e4-4274-9436-2bc85723a22e@googlegroups.com> <511fd40e$0$6555$9b4e6d93@newsspool4.arcor-online.net> MIME-Version: 1.0 Lines: 30 NNTP-Posting-Date: 16 Feb 2013 23:05:29 CET NNTP-Posting-Host: efbbd94a.newsspool2.arcor-online.net X-Trace: DXC=a?E^I[YV37K[6=1B@oB@@@A9EHlD;3YcB4Fo<]lROoRA8kFB[UfL]`VYODD X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:18509 Martin Honnen wrote: > justaguy wrote: >> I meant to delete the row but the TD only, >> > > If you want to delete the row the td is in from the table or table > section it is contained in then use > ... > > Actually the variables are not needed but might make the code more > descriptive than simply doing > this.parentNode.parentNode.removeChild(this.parentNode); Another possibility, without loss of compatibility: var row; (row = this.parentNode).parentNode.removeChild(row); This makes use of the fact that the result of a simple assignment is its right-hand side, and that MemberExpressions are evaluated from left to right. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.