mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
21 lines
423 B
HTML
21 lines
423 B
HTML
<!doctype html>
|
|
<html>
|
|
<script src="/dist/jquery.js"></script>
|
|
<script>
|
|
function report( event ) {
|
|
var payload = {
|
|
event: event.type
|
|
};
|
|
return top.postMessage( JSON.stringify(payload), "*" );
|
|
}
|
|
|
|
jQuery( window ).on( "beforeunload", function( event ) {
|
|
report( event );
|
|
}).on( "load", function( event ) {
|
|
setTimeout(function() {
|
|
window.location.reload();
|
|
}, 50);
|
|
});
|
|
</script>
|
|
</html>
|