Exercice 7-1-2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>exercice 1.3 <script type="text/javascript"> function afficher(){ //Complétez ici la fonction } </script> </head> <body> <table> <tr><td>Nom : </td><td><input id="nom" size="30"></td></tr> <tr><td>Prénom : </td><td><input id="prenom" size="30"></td></tr> <tr><td>
afficher le nom et le prenom</td><td></button></td> <tr><td>Nom & Prenom : </td><td>
</td></tr> </table> </body> </html>
Instructions Javascript
for
if
switch(n)
document.getElementById('id').value
document.getElementById('id').innerHTML=
document.getElementById('id').setAttribute
Instructions HTML
<b>
<i>
<p>
<br/>
<hr/>
<ul>
<ol>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<table>
<button>
<button onclick="execute()"> Clic </button>
<input type="text"/>
<input onkeypress="if(event.keyCode==13)
execute(this.value)"/>
<img src="/image.jpg" id="identif"/>
<span id='place'>
<div id='place'>