Liste déroulante avec le premier champ vide
Résolu/Fermé
A voir également:
- Liste déroulante avec le premier champ vide
- Liste déroulante excel - Guide
- Liste déroulante en cascade - Guide
- Formate pour taxer client frigo vide ✓ - Forum Matériel & Système
- Internat nourriture - Forum Loisirs / Divertissements
- Coeur vide ✓ - Forum Facebook
3 réponses
<option value=""></option> laisser vide
<option value="tttttttttttt"</option>
<option value="sssssssssssss"</option>
........
<option value="tttttttttttt"</option>
<option value="sssssssssssss"</option>
........
<!-- DEBUT SCRIPT MENU DEROULANT NOUVELLE FENETRE --> <script language="JavaScript"> var target = "blank" //Destination des URL: "blank", "top" "self" ou "nom du cadre" ex: #frame2 function envoie(frm){ URL = frm.mgros.options[frm.mgros.selectedIndex].value if (frm.mgros.selectedIndex != 0){ if (target == "blank") mywindow = window.open(''+URL+''); else if (target == "self") document.location = URL; else parent.frames[target].location = URL; }} //--> </script> <form name="Form_1"> <font color="#000099" size="12" face="Times New Roman"></font><select name="mgros" onchange="envoie(this.form)" style="font-family: Verdana; font-size: 10pt; background-color: teal; color: yellow;" size="1"> <option value=""></option> <option value="http://www.repeatlab.com/Mangas">AB Mangas Replay</option> <option value="https://www.6play.fr/m6">M6 Replay </option> <option value="http://www.w9replay.fr">W9 Replay </option> </select> </form>