-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (34 loc) · 808 Bytes
/
index.html
File metadata and controls
38 lines (34 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<script>
function affichage(){
alert("Tout es OK !");
}
function cacher(){
document.getElementById('DuTexte').style.display="None";
}
function presenter(){
document.getElementById('DuTexte').style.display="Block";
}
function controler(){
if(document.getElementById('Control').checked){
alert("Bouton option coché");
}
else{alert("Bouton option NON coché");}
}
</script>
</head>
<body>
<h1>Mes outils</h1>
<hr/>
<h2>Boite de dialogue</h2>
<button onclick="affichage()">Afficher</button>
<hr/>
<p id="DuTexte">Ma phrase de texte</p>
<button onclick="presenter()">Presenter</button>
<button onclick="cacher()">Cacher</button>
<hr/>
<p>Option<input type="checkbox" id="Control"></p>
<button onclick="controler()">Check</button>
</body>
</html>