gecko-dev/dom/xhr/tests/iframe_sync_xhr_unload.html

19 строки
329 B
HTML

<!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>