<html>
<head>
</head>
<body>
<div>foo</div>
<div>bar</div>
<script>
d=document.createElement("div")
d.innerHTML="baz"
document.body.insertBefore(d,document.body.firstChild)
</script>
</body>
</html>
<html>
<head>
</head>
<body>
<div>foo</div>
<div>bar</div>
<script>
document.body.firstChild.data = "baz"
</script>
</body>
</html>