AW: AW: [Javascript] Re: <select> focussieren

Kim Hoogenberg kim.hoogenberg at virgil.nl
Tue Feb 8 07:22:33 CST 2005


>good it helped you:)
>
>so here is the complete code that should work,
>but it won't, neither with a form name and document.formname
>or without document., am i missing something?
>
><html>
><head>
><title></title>
></head>
>
><body>
>
><script language="JavaScript" type="text/javascript">
>document.getElementById("art").focus();
></script>
>
><form action="" method="get">
>
><table width="100%">  
>  <tr> 
>    <td>
>	  <select name="art" id="art">
>	    <option value=""></option>
>	    <option value="A">A</option>
>	    <option value="D">D</option>
>	    <option value="I">I</option>
>	    <option value="L">L</option>
>	    <option value="T" selected>T</option>
>	    <option value="Text">Text</option>
>	    <option value="F">F</option>
>	  </select>
>    </td>  
>  </tr>
></table>
></form>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>
document.getElementById("art") doesn't exist at that moment of parsing.. 
put the script after the form and it would work a lot better..



More information about the Javascript mailing list