mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
17 lines
416 B
HTML
17 lines
416 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function runTest() {
|
|
var div = document.createElement("div");
|
|
div.appendChild(document.createTextNode("New Div"));
|
|
document.body.insertBefore(div, document.getElementById("insertion"));
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="runTest()">
|
|
<div style="display: table-cell">Table cell</div>
|
|
<div id="insertion">Block</div>
|
|
</body>
|
|
</html>
|