Réponse acceptée !
Bonjour,
je n'ai plus sous la main comment utiliser new option,
alors un ch'tit exemple sans ?
la page mère
<form name="form1" method="get" action="">
<select name="monselect" id="monselect" size="1">
<option value="Monaco">Monaco</option>
<option value="Geneve">Geneve</option>
</select>
<input name="btn_type_objet" size="15" type="button" class="bouton_plus"
onClick="window.open('popup.htm',430,320,'menubar=no,scrollbars=no,statusbar=no')"
value="+" >
</form>
le pop-up
<html>
<head>
<script type="text/JavaScript">
function addSelect(){
window.opener.form1.monselect.options.length++;
window.opener.form1.monselect.options[window.opener.form1.monselect.options.length-1].text="Paris";
}
</script>
</head>
<body>
<input type="button" name="Submit" value="Bouton" onClick="addSelect();">
</body>
</html>
si new Option semble mieux, regarder la doc car pas loin.
Cordialement. Bul. ~ Site ~