Ich möchte gerne, dass beim Laden eines Formulars ein Feld Fokusiert wird. In sämtlichen Forums usw. finde ich den "onload focus" aber nur im <body> tag....
Ich habe es unter anderem so probiert, jedoch ohne Erfolg:
Code
<form action='index.php' method='post' name='formplayerinsert' onload='document.self.player_gast.focus();'>
Was mache ich falsch?
EDIT: Okey, was ich falsch mache, habe ich bemerkt. "onload" ist nur in <body> tags zulässig. Aber wie mache ich es dann richtig