Skip to content

Instantly share code, notes, and snippets.

@kadel
Created April 7, 2011 08:51
Show Gist options
  • Save kadel/907364 to your computer and use it in GitHub Desktop.
Save kadel/907364 to your computer and use it in GitHub Desktop.
<html>
<head>
<title></title>
<script type='text/javascript'>
function add_to_body() {
var divObal = document.createElement("div");
divObal.setAttribute("id", "obal");
divObal.style.width = "400px";
divObal.style.height = "300px";
divObal.style.backgroundColor = "Grey";
document.body.appendChild(divObal);
}
</script>
</head>
<body onload="add_to_body()">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment