AW: AW: AW: AW: [Javascript] Re: <select> focussieren
Kim Hoogenberg
kim.hoogenberg at virgil.nl
Tue Feb 8 07:38:36 CST 2005
Michael Borchers wrote:
>did you try it yourself?
>it won't work in my IE:/
>
>
Sorry, the first time I didn't look at your script, but this code
works.. (check the getElementById statement which is different now)
<html>
<head>
<title></title>
</head>
<body>
<form action="" method="get" name="reparatur">
<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>
<script language="JavaScript" type="text/javascript">
document.getElementById("art").focus();
</script>
</body>
</html>
More information about the Javascript
mailing list