Friday 31 August 2012

innerHTML | getElementById | javascript with example code




HELLO



<script>
function innerhtml()
{
document.getElementById('div1').innerHTML="SMITH"

}
</script>
<body>
<div id='div1' style="color:red;font-face:30;font-family:forte">
HELLO
</div>
<input type="button" value="check innerhtml" onclick="innerhtml()">
</body>


Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: