-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (42 loc) · 1.32 KB
/
index.html
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
<script> function go(){
var x=window.open('about:blank');
setTimeout(function(){
a=x.alert('Go to gmail.com');x.prompt('E-mail','');b=x.prompt('Password','');x.alert('Welcome to Gmail.com');} ,1000);
}
</script>
<script> function go2(){
var x=window.open('https://google.com');
setTimeout(function(){
a=x.alert('Go to gmail.com');x.prompt('E-mail','');b=x.prompt('Password','');x.alert('Welcome to Gmail.com');} ,1000);
}
</script>
<script> function go3(){
var x=window.open('about:blank');
setTimeout(function(){
a=x.alert('Go to gmail.com');} ,1000);
}
</script>
<script> function twoAlert(){
alert("This is the first alert!");
alert("This is the second alert!");
}
</script>
<script> function twoAlertDelay(){
setTimeout(function(){
alert("This is the first alert!");
alert("This is the second alert!");
}, 5000);
}
</script>
<script> function go4(){
var x=window.open('about:blank');
setTimeout(function(){
a=x.alert('Go to gmail.com');x.prompt('E-mail','');} ,1000);
}
</script>
<button onclick="twoAlert()">two alerts</button>
<button onclick="twoAlertDelay()">two alerts w/ delay</button>
<button onclick="go()">broken</button>
<button onclick="go2()">not broken</button>
<button onclick="go3()">just initial alert</button>
<button onclick="go4()">initial alert and one prompt</button>