OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <script> | |
4 function createXHR(url) { | |
5 var x = new XMLHttpRequest(); | |
6 x.onabort = window.parent.removeFrame; | |
7 x.open('GET', url); | |
8 return x; | |
9 } | |
10 | |
11 function runTest () { | |
12 var x1 = createXHR('resources/not-there.txt'); | |
13 var x2 = createXHR('resources/not-there-either.txt'); | |
14 x1.send(); | |
15 x2.send(); | |
16 } | |
17 window.onload = runTest; | |
18 </script> | |
19 </html> | |
OLD | NEW |