Comment devrais-je modifier le javascript suivant pour que les liens apparaissent dans une nouvelle fenêtre ?Merci d'avance !************************************<!-- A coller entre les balises <body> et </body> --><FORM><SELECT NAME="list" onChange="top.location.href=this.form.list.options[this.form.list.selectedIndex].value"> <OPTION SELECTED VALUE="http://www.yahoo.fr">Yahoo France <OPTION VALUE="http://www.francite.com">Francite <OPTION VALUE="http://www.nomade.fr">Nomade <OPTION VALUE="http://www.altavista.com">Altavista <OPTION VALUE="http://www.excite.com">Excite <OPTION VALUE="http://www.infoseek.com">Infoseek <OPTION VALUE="http://www.lycos.com">Lycos <OPTION VALUE="http://www.magellan.com">Magellan </SELECT></FORM>
Essaye cela.<head><script language="javascript">function ouv_popup() {window.open(document.formul.list.options[document.formul.list.selectedIndex].value,"fen_calendrier","");}</script></head><body><FORM name="formul"><SELECT NAME="list" onChange="ouv_popup()">
Pour rester dans le meme genre de prog que jp, il suffit juste d'ajouter window.open comme cela:
Autant pour moi, j'avais pas fait gaffe. Faut virer top.location.href=ce qui donne:
Ok, merci beauoup Yacapa, cette fois ça joue parfaitement !MERCI
Copyright (c) Devclic 2002 - 2026 - Tous droits réservés