Here it is.
Code:
<html>
<head>
<script type="text/javascript">
function addButton(){
var newobj = document.createElement('div');
newobj.id = 'myid';
newobj.setAttribute('style', 'background-color: blue;');
document.body.appendChild(newobj);
Leave a comment: