<html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>questionnaire.php</title> <script language="Javascript"> function ouvre_popup(fic, nomselect_) { var objselect = document.getElementById(nomselect_); if(objselect.options[0].selected) window.open(fic,'fonction',width=400, height=250, top= 50, left=50); } </script> </head> <form method="post" action="envoi1.php" name="formulaire"> <fieldset ><legend>Je produis du fromage?</legend> <select name="fromager" id="fromage" onchange="if(this.options[this.selectedIndex].value=='oui') document.getElementById('a').style.display='block'; else document.getElementById('a').style.display='none';"}> <option selected="selected" value="non">non</option> <option value="oui">oui</option> </select> Lait employé: lait cru lait pasteurisé </fieldset> </form> </html>
function ouvre_popup(fic, nomselect_) { var objselect = document.getElementById(nomselect_); if (objselect.options[0].selected) window.open(fic, 'fonction', "width=400, height=250, top=50, left=50"); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question