How to embed function_innerHTML in javascript with getElementById
How to embed function_innerHTML in javascript with getElementByIdHELLO
<script>
function function_innerHTML()
{
document.getElementById('div1').innerHTML="dev"
}
</script>
<body>
<div id='div1' style="color:red;font-face:30;font-family:forte">
HELLO
</div>
<input type="button" value="click" onclick="function_innerHTML()">
</body>
0 comments: