create label dynamically
by Nirmala[ Edit ] 2010-05-05 18:04:38
Create label dynamically
If you want to create label dynamically just use the below code
<script type="text/javascript">
function test()
{
var formtag = document.createElement("form");
var labeltag=document.createTextNode("Name:");
formtag.appendChild(labeltag);
document.body.appendChild(formtag);
}
</script>
<input type="button" value="create label" onclick="test()">