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:
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:
(追記) (追記ここまで)Others
Languages
Frameworks
Web / Design
Mobile Technology
Sql & Technology
R4R