Wednesday 10 May 2017

js in body tag

<html>

<body>
<p id=para> hai this is para </p>
<button type="button" onClick="myFunction()">click on me </button>


<script>
function myFunction()
{
document.getElementById("para").innerHTML="this is not para";
}
</script>


</body>
</html>

No comments:

Post a Comment