DISPLAY VARIABLE VALUE INSIDE THE TAG
DISPLAY VARIABLE VALUE INSIDE THE TAG:-
<html>
<head>
<script language="JavaScript">
function display()
{
var a=10;
document.getElementById("p1").innerHTML=a;
}
</script>
</head>
<body>
<p id="p1"> </P>
<br>
<button onclick="display()"> SUBMIT </button>
</body>
</html>
Comments
Post a Comment