mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
27 lines
345 B
HTML
27 lines
345 B
HTML
<html>
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function boo()
|
|
{
|
|
var div = document.getElementById("div");
|
|
var dd = document.getElementById("dd");
|
|
var newSpan = document.createElement('span');
|
|
dd.insertBefore(newSpan, div);
|
|
}
|
|
|
|
window.addEventListener("load", boo, false);
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
<dd id="dd"><div id="div"></div></dd>
|
|
|
|
</body>
|
|
|
|
</html>
|