JS Syntax document.write


Hello World – First script example in JavaScript

<html>
<body>
<script language="javascript" type="text/javascript">
<!--
   document.write("Hello World!")
//-->
</script>
</body>
</html>
 Result: 
 Hello World!