1
0
Fork 0
firefox/dom/tests/browser/page_scriptCache_load_events.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
555 B
HTML

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>load events order test</title>
<script>
window.addEventListener("DOMContentLoaded", () => {
document.getElementById("result").textContent += "DOMContentLoaded";
const script = document.createElement("script");
script.src = "file_scriptCache_load_events.js";
document.getElementsByTagName("head")[0].appendChild(script);
});
function onLoad() {
document.getElementById("result").textContent += "+load";
}
</script>
</head>
<body onload="onLoad()">
<span id="result"></span>
</body>