[Target _BLANK][Débutant JS]
	
	
		voici ma fonction js.
	Code:
	
1 2 3 4 5 6 7 8 9 10 11
   | function Url(formulaire)
{
	if (formulaire.liste_moteur.selectedIndex != 0)
	{
		window.location.href = formulaire.liste_moteur.options[formulaire.liste_moteur.selectedIndex].value;
	}
	else 
	{
		alert('Veuillez choisir une destination.');
	}
} | 
 elle est appelé ici :
	Code:
	
1 2 3 4
   |                    <select name="liste_moteur" onChange="Url(this.form)">
                        <option selected value="">- Selectionnez -</option>
                        <option value="test.php">test</option>
                   </select> | 
 ca marche, mais je voudrais savoir qui modifier pour que la page s'ouvre en target="_BLANK" ...
merci :)
	 
	
	
	
		Re: [Target _BLANK][Débutant JS]
	
	
		Est-ce que ceci répond ŕ ta question ? :
	Code:
	
window.open(formulaire.liste_moteur.options[formulaire.liste_moteur.selectedIndex].value);