3 <title>Loading...
</title>
5 <body onload=
"attachUnloadListener()">
7 function attachUnloadListener() {
8 window
.addEventListener('unload', onUnload
, false);
9 document
.title
= "sync xhr on unload";
12 var req
= new XMLHttpRequest();
14 req
.open('GET','download-test1.lib', false);
18 <p>Navigate to another page to trigger synch xmlhttprequest
</p>