-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex8.html
More file actions
29 lines (25 loc) · 721 Bytes
/
ex8.html
File metadata and controls
29 lines (25 loc) · 721 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Exercicio 5</title>
<meta charset="utf-8">
<script type="text/javascript">
/*Exercício 1
Exercício 2
Crie dois botões em html.
Crie uma função em Javascript que mostra a mensagem “Primeiro botão ativado” quando clicar no primeirobotão.
Crie uma função em Javascript que mostra a mensagem “Segundo botão ativado” quando clicar no segundo botão.
*/
function primeiroBotao(){
alert('Primeiro botão ativado');
}
function segundoBotao(){
alert('Segundo botão ativado');
}
</script>
</head>
<body>
<button onclick="primeiroBotao()">Primeiro botão</button><br>
<button onclick="segundoBotao()">Segundo botão</button>
</body>
</html>