gecko-dev/dom/html/test/file_bug209275_1.html

29 строки
571 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<base href="http://example.org" />
</head>
<body onload="load();">
Initial state
<script>
function load() {
// Nuke and rebuild the page.
document.removeChild(document.documentElement);
var html = document.createElement("html");
var body = document.createElement("body");
html.appendChild(body);
var link = document.createElement("a");
link.href = "#";
link.id = "link";
body.appendChild(link);
document.appendChild(html);
// Tell our parent to have a look at us.
parent.gGen.next();
}
</script>
</body>
</html>