Hide scripts using comments : Comments « Language Basics « JavaScript Tutorial






<html>
<head>
<title>Hide scripts using comments.</title>
<script language="javascript" type="text/javascript">

<!--

lines of JavaScript code here
...

//-->

</script>

</head>
<body>

Page content here...

</body>
</html>








1.1.Comments
1.1.1.Single line comments
1.1.2.Multiline comments
1.1.3.Hide scripts using comments