Exercice HTML: Simple Formulaire


Rappel : alert(chaine) ouvre une fenêtre pop-up contenant la chaîne et un bouton OK.Donnez le code source des divers fichiers nécessaires.
123456789101112131415161718192021222324"-//w3c//dtd html 4.0 transitional//en"htmlheadtitlecorrige exo1span style="color: #66cc66;">/titlespan style="color: #66cc66;">/headbodypform> name=monformulaire>table> BORDER WIDTH="300" HEIGHT="125" >trtdinput> type=button value= Nom >span style="color: #66cc66;">/tdtdinput> type=text name=nom size=20/tdspan style="color: #66cc66;">/trtrtdinput> type=button value= Telephone >span style="color: #66cc66;">/tdtdinput> type=text name=tel size=20/tdspan style="color: #66cc66;">/trtrtdinput> type=button value= Adresse >span style="color: #66cc66;">/tdtdinput> type=text name=adresse size=20/tdspan style="color: #66cc66;">/trspan style="color: #66cc66;">/tablespan style="color: #66cc66;">/formspan style="color: #66cc66;">/BODYspan style="color: #66cc66;">/HTML
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950512)Il vous faut trois fichiers :1- Le fichier comportant la description des frames (frameset)frames.htmlspan style="color: #ff0000;">"-//w3c//dtd html 4.0 transitional//en"htmlheadtitlecorrige exo 1 - 2°span style="color: #66cc66;">/titlespan style="color: #66cc66;">/headFRAMESET> cols="40%,*"> name=questionnaire src=quest.html>frame> name=reponse src=rep.html>span style="color: #66cc66;">/FRAMESETspan style="color: #66cc66;">/HTMLle fichier questionnaire (quest.html) qui comporte les boutons et qui a le fonctionnement indiqué :quest.htmlspan style="color: #ff0000;">"-//w3c//dtd html 4.0 transitional//en"htmlheadtitlecorrige exo2 questionnairespan style="color: #66cc66;">/titlespan style="color: #66cc66;">/headbodypform> name=monformulaire>table> BORDER WIDTH="300" HEIGHT="125" >trtdinput> type=button value= Nom onclick="alert(document.monformulaire.nom.value);"/tdtdinput> type=text name=nom size=20 value=''/tdspan style="color: #66cc66;">/trtrtdinput> type=button value=Telephone onclick="alert(document.monformulaire.tel.value);"/tdtdinput> type=text name=tel value=''size=20/tdspan style="color: #66cc66;">/trtrtdinput> type=button value= Adresse onclick="alert(document.monformulaire.adresse.value);"/tdtdinput> type=text name=adresse value='' size=20/tdspan style="color: #66cc66;">/trspan style="color: #66cc66;">/tablecenterinput> type=button value=valideronClick="window.parent.reponse.document.write('nom =', document.monformulaire.nom.value);window.parent.reponse.document.write('adresse=', document.monformulaire.adresse.value);window.parent.reponse.document.write('span style="color: #66cc66;">/PPtelephone=',document.monformulaire.tel.value);window.parent.reponse.document.write('span style="color: #66cc66;">/P');">span style="color: #66cc66;">/formspan style="color: #66cc66;">/BODY span style="color: #66cc66;">/HTML
Article publié le 08 Janvier 2012 Mise à jour le Dimanche, 30 Août 2020 16:34 par BENKIRANE Fatima Ezzahra