Javascript language

R4R® Javascript Javascript Example
(追記) (追記ここまで)
(追記) (追記ここまで)
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:

(追記) (追記ここまで)
Copyright ©2021-22 r4r.co.in, all rights reserved. Theguestspost.com
Sitemap
Career
Post comment
About us
Subscription
Unsubscription

AltStyle によって変換されたページ (->オリジナル) /