aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/event/onbeforeunload.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/event/onbeforeunload.html')
-rw-r--r--test/data/event/onbeforeunload.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/data/event/onbeforeunload.html b/test/data/event/onbeforeunload.html
index 11ad1964a..30053967a 100644
--- a/test/data/event/onbeforeunload.html
+++ b/test/data/event/onbeforeunload.html
@@ -4,17 +4,18 @@
<script>
function report( event ) {
var payload = {
+ source: "jQuery onbeforeunload iframe test",
event: event.type
};
- return parent.postMessage( JSON.stringify(payload), "*" );
+ return parent.postMessage( JSON.stringify( payload ), "*" );
}
jQuery( window ).on( "beforeunload", function( event ) {
report( event );
- }).on( "load", function( event ) {
- setTimeout(function() {
+ } ).on( "load", function( event ) {
+ setTimeout( function() {
window.location.reload();
- }, 50);
- });
+ }, 50 );
+ } );
</script>
</html>