<HTML>
<HEAD>
<TITLE>Fill DIV Dynamically using Java Script</TITLE>
<script>
function fill_div()
{
document.getElementById("result").innerHTML="DIV filled dynamically using Javascript";
}
</script>
</HEAD>
<BODY>
<input type="button" value="Fill DIV Dynamically" onClick="fill_div()">
<br>
DIV to be filled:
<DIV id="result" style="border:1px solid; width:200px; height:200px"></DIV>
</BODY>
</HTML>