Hi,
<body ... onload="document.deineTextFeldId.focus();">
Nein, aus dem Vorhandensein eines Elementes mit einer ID automatisch ein korrespondierendes Element gleichen Namens im globalen Namensraum zu machen, so dumm ist nur der IE. (Zumal globaler Namensraum window waere, und nicht document.)
Entweder geht man ueber document.forms[...].elements[...], oder man benutzt document.getElementById(), um die Referenz auf ein Element mit gegebener ID zu ermitteln.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“