juha: HTML-Cursor setzten (setfocus)???

Beitrag lesen

Hallö

Nun habe ich es wie folgt, doch der Cursor ist noch nicht im Eingabefeld per Start der HTML-Seite?

cu juha

<html>
<head>

<script type="text/javascript">
   function fokusieren()
   {
  document.personsuchen.search.focus();
   }
   </script>
</head>
<body onLoad="fokusieren()" bgcolor='#E7F7FF'><font face='arial'>

<form name="personsuchen" method="get" action="/cgi-bin/zeit.cgi">
 <table border="0" cellspacing="0" cellpadding="3">

<tr>
  <td bgcolor="#E7F7FF">Name</td>
  <td bgcolor="#E7F7FF"><input type="text" name="login" size="20" value=""></td>
    </tr>
    <tr>
       <td></td>
       <td><input type="submit" value="Suchen" onClick="self.location.href='/cgi-bin/zeit.cgi'" name="B1"></td>
       <input type="hidden" name="mode" value="person">
    </tr>
    </table>
    </form>

</body>
</html>