<html> <head> <title>test</title> <script type="text/javascript"> addEventListener('load', function() { window.setTimeout(function() { document.write("test"); }, 0); }); </script> </head> <body> </body> </html>