6 document.getElementById("result").innerHTML += message + "<br>";
10 var s = document.createElement('script')
11 s.setAttribute("type", "text/javascript")
12 s.setAttribute("src", "resources/load-deferrer-script-element.js")
14 document.getElementsByTagName("head")[0].appendChild(s);
20 // This line will load external script into memory.
29 alert("Scripts should not be running in the background!");
37 <p>This tests the bug https://bugs.webkit.org/show_bug.cgi?id=38910.
38 Click the button, wait 5 seconds and close it.
39 The test passes if no error messages show up in the page!</p>
40 <input id="button" type="button" value="click me" onclick="runModal()"/>