-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbom.html
More file actions
65 lines (54 loc) · 1.87 KB
/
Copy pathbom.html
File metadata and controls
65 lines (54 loc) · 1.87 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>USO DEL BOM</title>
</head>
<body>
<h2>El navegador que estas utilizando es:</h2>
<p id="navegador"></p>
<img id="imagen">
<p id="prueba"></p>
<p id="prueba2"></p>
<p id="prueba3"></p>
<p id="prueba4"></p>
<p id="prueba5"></p>
<p id="prueba6"></p>
<p id="prueba7"></p>
<p id="prueba8"></p>
<p id="prueba9"></p>
<p id="prueba11"></p>
<p id="prueba12"></p>
<p id="prueba13"></p>
<p id="prueba14"></p>
<p id="prueba15"></p>
<p id="prueba16"></p>
<script type="text/javascript" src="bom.js"></script>
<h2>Window History Back</h2>
<input type="button" value="Back" onclick="goBack()">
<h2>Window History Forward</h2>
<input type="button" value="Forward" onclick="goForward()">
<h2>JavaScript Alert</h2>
<button onclick="myFunction()">Try it</button>
<h2>JavaScript Confirm Box</h2>
<button onclick="myFunction()">Try it</button>
<h2>JavaScript Cuadro de Aviso</h2>
<button onclick="myFunction()">Try it</button>
<h2>JavaScript</h2>
<p>Saltos de liena en un cuadro de aviso.</p>
<button onclick="alert('Hello\nHow are you?')">Try it</button>
<h2>Establecer tiempo</h2>
<p>Haga clic en "Pruébelo". Espere 3 segundos y la página alertará "Hola".</p>
<button onclick="setTimeout(myFunction, 3000);">Try it</button>
<h2>Cómo detener la ejecución</h2>
<p>Haga clic en "Pruébelo". Espere 3 segundos. La página alertará "Hola.</p>
<p>Haga clic en "Parar" para evitar que la primera función se ejecute.</p>
<p>(Debe hacer clic en "Detener" antes de que transcurran los 3 segundos)</p>
<button onclick="myVar = setTimeout(myFunction, 3000)">Try it</button>
<button onclick="clearTimeout(myVar)">Stop it</button>
<h2>Muestra la hora actual</h2>
<p>Una secuencia de comandos en esta página comienza este reloj:</p>
<p id="prueba18"></p>
<button onclick="clearInterval(myVar)">Stop time</button>
</body>
</html>