Embedding JavaScript in HTML : JavaScript in HTML « Development « JavaScript DHTML






Embedding JavaScript in HTML


<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script language="JavaScript">

document.write("Hello World!");

</script>
</body>
</html>
           
       








Related examples in the same category

1.HTML comment that hides the script.
2.JavaScript Embedded in an HTML File
3.Using HTML Comments to Hide JavaScript Code
4.Inserting Source JavaScript Files
5.Using the Head for Definitions
6.A Basic JavaScript Starter Document
7.JavaScript Template File
8.Embedding a JavaScript Function