R4R
Right Place For Right Person TM
R4R ASP.NET with C# JavaScript Tutorials createTextNode() Method
previous

Home

Next

createTextNode() Method

The createTextNode() method creates a text node. This method returns a Text object.

Example:

<html>
<body>
<script language="JavaScript">
function fnct_node() {
   var my_node = document.createTextNode("Good Morning!!!");
   document.body.appendChild(my_node); 
} 
</script>
<button onclick="fnct_node()">Create text node</button>
</body>
</html>

Output:

pow() Method

The pow() method returns the value of x to the power of y .

Example:

<html>
<body>
<button onclick="alert(Math.pow(2,2));">POW</button>
</body>
</html>

Output:

 

previous

Home

Next


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R