Mega Code Archive

 
Categories / JavaScript Tutorial / Language Basics
 

Multiline comments

/* */ enables comments to span multiple lines. <html> <head> <title>A Simple Page</title> <script language="javascript"> <!-- /* Below two alert() methods are used to fire up two message boxes - note how the second one fires after the OK button on the first has been clicked */ alert("An alert triggered by JavaScript!"); alert("A second message appears!"); //  --> </script> </head> <body> </body> </html>