UNPKG
nightmare
Version:
latest (3.0.2)
3.0.2
3.0.1
3.0.0
2.10.0
2.9.1
2.9.0
2.8.1
2.8.0
2.7.0
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.1
2.4.0
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A high-level browser automation library.
github.com/segmentio/nightmare
segmentio/nightmare
nightmare
/
test
/
fixtures
/
unload
/
index.html
14 lines
(13 loc)
•
225 B
HTML
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE
html
>
<
html
>
<
head
>
<
title
>
Unload
</
title
>
<
script
>
window
.
onunload
=
window
.
onbeforeunload
=
function
(
) {
return
'Are you sure?'
; };
</
script
>
</
head
>
<
body
>
</
body
>
</
html
>