Entre
les balises Head
<SCRIPT
LANGUAGE="JavaScript">
function ChangeUrl(formulaire)
{
if (formulaire.ListeUrl.selectedIndex != 0)
{
location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
}
else
{
alert('Veuillez choisir une destination.');
}
}
</SCRIPT>
Entre les balises Body
<FORM>
<SELECT NAME="ListeUrl" SIZE=1 onChange="ChangeUrl(this.form)">
<OPTION SELECTED VALUE="">-Selectionnez
votre destination-
<OPTION VALUE="http://monsite.com">Lien1
<OPTION VALUE="http://monsite2.com">Lien2
</SELECT>
</FORM>