Wednesday 10 May 2017

js in head

<html>
<head>
<script>
function myFunction()
{
document.getElementById("para").innerHTML="this is not para";
}
</script>
</head>
<body>
<p id='para'> hai this is para </p>
<button type="button" onClick="myFunction()">click on me </button>
</body>
</html>

No comments:

Post a Comment