summaryrefslogtreecommitdiffstats
path: root/dom/xhr/tests/iframe_sync_xhr_unload.html
blob: d58b1994c8b1968da1659a92f48bc393ea5e0a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE HTML>
<html>
<body>
  <script type="application/javascript">

function o() {
 var xhr = new XMLHttpRequest();
 xhr.open("GET", "sync_xhr_unload.sjs", false);
 try { xhr.send(); } catch(e) {}
}

window.addEventListener("beforeunload", o, false);
window.addEventListener("unload", o, false)

  </script>
</body>
</html>