This will work:
Code:
<head>
<script type="text/javascript">
function select_first_option()
{
sel = document.getElementsByTagName('select')
for (var i = 0; i < sel.length; i++)
{sel[i].selectedIndex=0;}
}
</script>
</head>
<body onunload="select_first_option()"
<select>
<option>one</option>
<option>two</option>
<option>three</option>
<option>four</option>
</select>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<select>
<option>een</option>
<option>twee</option>
<option>drie</option>
<option>vier</option>
</select>
</body>
Arie.
Bookmarks