<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
window.addEvent('load', function() {
var parent = document.getElementById("parent");
var child = parent.children[0];
var childval = child.innerHTML;
document.getElementById("output").innerHTML=childval;
});
</script>
</head>
<body>
<div id="parent">
<div id="child">some-value</div>
</div>
<div id="output"></div>
</body>
</html>