mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
e5ffcb0838
Ref gh-3040 Closes gh-3049
32 lines
699 B
HTML
32 lines
699 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
|
<title>onunload ajax requests (#14379)</title>
|
|
<script src="../../jquery.js"></script>
|
|
<script src="../iframeTest.js"></script>
|
|
</head>
|
|
<body>
|
|
<form id="navigate" action="../iframe.html"></form>
|
|
<script>
|
|
jQuery( window ).on( "unload", function() {
|
|
var ajaxStatus;
|
|
jQuery.ajax({
|
|
url: "../name.html",
|
|
async: false,
|
|
complete: function( xhr, status ) {
|
|
ajaxStatus = status;
|
|
}
|
|
});
|
|
startIframeTest( ajaxStatus );
|
|
});
|
|
|
|
jQuery(function() {
|
|
setTimeout(function() {
|
|
document.getElementById( "navigate" ).submit();
|
|
}, 0 );
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|