Esempio:
Problema: con IE6 viene 'blu' come vuoi tucodice:<html> <head> <script type="text/javascript"> function selField() { document.getElementById("laForm").campo.focus(); } </script> </head> <body onload="selField();"> <form id="laForm"> <select id="campo" name="campo"> <option value="1">Valore 1</option> <option value="2">Valore 2</option> <option value="3">Valore 3</option> <option value="4" selected="selected">Valore 4</option> <option value="5">Valore 5</option> <option value="6">Valore 6</option> </select> </form> </body> </html>
con IE7 viene 'blu' come vuoi tu
con Opera 9.26 viene 'blu' come vuoi tu
con Firefox, no!
HTH
Zappa