Path: csiph.com!usenet.pasdenom.info!gegeweb.42!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: <1630066.2Dj5kTfcKN@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 10 Jun 2012 23:18:29 +0200 User-Agent: KNode/4.4.11 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+&. Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 30 NNTP-Posting-Date: 10 Jun 2012 23:18:30 CEST NNTP-Posting-Host: 8a37e52e.newsspool3.arcor-online.net X-Trace: DXC=`2YDi[Ao0[]HigV@eW57PQMcF=Q^Z^V3X4Fo<]lROoRQ8kFKPj5U>?OZWPMPH1\G_;7=nRW X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:14435 jmrw wrote: ^^^^ Who? > For my pages like this one : > > http://www.jmrw.com/Chess/Kopnin/base.htm > > I would like to select the next item of the form by clicking on the > picture on right or on the photo on left. > > Is it possible Yes. > and how? Put references to all relevant element objects in an Array (or NodeList). Keep a counter for that object. On click, increase or reset the counter (the `%' operator comes in handy), then call the specified object's focus() method. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)