<script type="text/javascript" language="javascript"> function createDiv() { var divTag = document.createElement("div"); divTag.id = "div1"; divTag.setAttribute("align", "center"); divTag.style.margin = "0px auto"; divTag.className = "dynamicDiv"; divTag.innerHTML = "This HTML Div tag created " + "using Javascript DOM dynamically."; document.body.appendChild(divTag); } </script>
onload
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)