зеркало из https://github.com/mozilla/pjs.git
27 строки
345 B
HTML
27 строки
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>
|