Exercice 7-2-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title> Ex 7-2-1;</title> <script type="text/javascript"> function affiche(){ //Complétez ici } </script> </head> <body> Nom : <input type='text' id="nom" /><br/> Prénom : <input type='text' id="prenom" /><br/> Ville : <input type='text' id="ville" /><br/> <button type='button' onclick="affiche()"> Envoi </button><br/><hr/><br/> <div style="width:500px;heigh:auto;;background:#C0C0C0;font-family:Courier;font-size:12px;" id="res"> </div> </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'>