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:

Tolal:0 Click:
Show All Comments