<html> <head> <script type="text/javascript"> <!-- function sayHello() {alert("Hello World")} //--> </script> </head> <body> <script type="text/javascript"> <!-- document.write("Hello World") //--> </script> <input type="button" onclick="sayHello()" value="Say Hello" /> </body> </html>
document.write(“<h” & i & “>This is header ” & i & “</h” & i & “>”) Next </script> </body> </html> ចំពោះ .. រង្វិល ជុំ នីមួយ For..Each loop