| <html> | |
| <!-- | |
| This test checks to make sure an alert after onLoad causes | |
| prerendering to fail. | |
| --> | |
| <head> | |
| <title>Prerender alert after onload cancellation</title> | |
| <script language="javascript" type="text/javascript"> | |
| window.onload = function() { | |
| // Delay the alert by an event loop iteration so the alert | |
| // happens after the page has loaded, rather than just before. | |
| setTimeout(alert, 0, "Testing prerender"); | |
| }; | |
| </script> | |
| </head> | |
| <body></body> | |
| </html> |