Public feed
#380465
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
.parent {
width: 200px;
height: 200px;
margin: 0;
padding: 0;
border: 1px solid #000;
}
.child {
width: 100px;
height: 100px;
margin: 50px 0 0 50px;
padding: 0;
border: 1px solid #000;
}
</style>
<script type="text/javascript">
function doThis() {
var div_parent = document.getElementById("parent");
var child = document.createElement("div");
child.className = "child";
div_parent.appendChild(child);
}
</script>
</head>
<body>
<div><a href="#" onclick="doThis(); return false;">asd</a></div>
<div id="parent" class="parent"></div>
</body>
</html>