create label dynamically

by Nirmala 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()">

Tagged in:

1167
like
0
dislike
0
mail
flag

You must LOGIN to add comments