Menu déroulant avec cible _blank
derf42
-
derf42 -
derf42 -
Bonjour,
J'ai un menu déroulant classique de ce type la:
<form name="slideform" id="slideform">
<span class="arial">
<select name="jumpMenu" class="arial_normal" id="jumpMenu">
<option value="" selected="selected">-----</option>
<optgroup label="Mai 2010">
<option value="albums_animation/anni_mme_vendoorme/index.html">Anniversaire de Mme Vendoorme</option>
<option value="albums_animation/contes_en_marche/index.html">Contes en marche - 18/05/10</option>
<option value="albums_animation/Depart_Mr_Chambon/index.html" >Départ de Mr Chambon - 16/05/10</option>
</optgroup>
<optgroup label="Juin 2010">
<option value="albums_animation/album_anim4/album_anim4.html">.....</option>
<option value="albums_animation/album_anim5/album_anim5.html">....</option>
<option value="albums_animation/album_anim6/album_anim6.html">...</option>
<option value="albums_animation/album_anim7/album_anim7.html">..</option>
</optgroup>
</select>
<span class="arial">
<input type="button" name="go_button" id= "go_button" value="Voir les photos" onclick="MM_jumpMenuGo('jumpMenu','parent',0)"/>
</span>
</form>
Le code JS:
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
var selObj = null; with (document) {
if (getElementById) selObj = getElementById(objId);
if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; }
}
//-->
Mon probleme est le suivant: : quand on clique sur le bouton du menu on ouvre la page sélectionné , et j'aimerais l'ouvrir dans une autre fenetre comme si je mettais un target="_blank" pour un lien classic. Merci de votre aide
J'ai un menu déroulant classique de ce type la:
<form name="slideform" id="slideform">
<span class="arial">
<select name="jumpMenu" class="arial_normal" id="jumpMenu">
<option value="" selected="selected">-----</option>
<optgroup label="Mai 2010">
<option value="albums_animation/anni_mme_vendoorme/index.html">Anniversaire de Mme Vendoorme</option>
<option value="albums_animation/contes_en_marche/index.html">Contes en marche - 18/05/10</option>
<option value="albums_animation/Depart_Mr_Chambon/index.html" >Départ de Mr Chambon - 16/05/10</option>
</optgroup>
<optgroup label="Juin 2010">
<option value="albums_animation/album_anim4/album_anim4.html">.....</option>
<option value="albums_animation/album_anim5/album_anim5.html">....</option>
<option value="albums_animation/album_anim6/album_anim6.html">...</option>
<option value="albums_animation/album_anim7/album_anim7.html">..</option>
</optgroup>
</select>
<span class="arial">
<input type="button" name="go_button" id= "go_button" value="Voir les photos" onclick="MM_jumpMenuGo('jumpMenu','parent',0)"/>
</span>
</form>
Le code JS:
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
var selObj = null; with (document) {
if (getElementById) selObj = getElementById(objId);
if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; }
}
//-->
Mon probleme est le suivant: : quand on clique sur le bouton du menu on ouvre la page sélectionné , et j'aimerais l'ouvrir dans une autre fenetre comme si je mettais un target="_blank" pour un lien classic. Merci de votre aide
A voir également:
- Menu déroulant avec cible _blank
- Menu déroulant excel - Guide
- Excel menu déroulant en cascade - Guide
- Menu déroulant google sheet - Accueil - Guide bureautique
- Enlever menu déroulant excel ✓ - Forum Word
- Canon quick menu - Télécharger - Utilitaires