Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <17725500.x5YR6M0e2C@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 28 Mar 2013 18:13:21 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 118 NNTP-Posting-Date: 28 Mar 2013 18:13:23 CET NNTP-Posting-Host: 7bbf5041.newsspool3.arcor-online.net X-Trace: DXC=QO;N7MH?]9ef1oJaJ0@dmgMcF=Q^Z^V3h4Fo<]lROoRa8kF Simple example: > One element in the page should get automatically the focus. > The way I did was to mark that element with a special tag > and to search for it with . Be aware that this may look user-friendly superficially, but actually is not as it prevents scrolling the document with the keyboard. If it works at all. > The advantage: > is that the code is very simple; simply searching > the HTML elements fort this concrete attribute. > > The disadvantage: > is that the whole HTML might be searched > depending on where the element is. > > Goal: > I would like to place the "setFocus" call at a location > where I know I have to search less elements. > > If an user clicks a button it's simple: > example: