HOW TO DISPLAY EXPRETION INSIDE THE TAG

 


HOW TO DISPLAY EXPRETION INSIDE THE TAG:-


<html>

<head>

<script language="JavaScript">

 

 function display() 

 {

 var a=10;

 document.getElementById("p1").innerHTML=10+20+30/2;

 }

 

</script>

</head>

<body>

<p id="p1"> </P>

<br>

<button onclick="display()"> SUBMIT </button>

</body>

</html>


Comments

Popular posts from this blog

flow management:- While loop/*Do while loop/for loop/

FUNCTION PARAMETER / /USER INPUT PARAMETER/ FUNCTION WITH IN A FUNCTION CONCEPT/

C# PROGRAM MANAGEMENT/ 1) condition management