Mega Code Archive

 
Categories / JavaScript Tutorial / Dialogs
 

Use alert dialog box to display the content of an array

< html> <head> <title>A Simple Page</title> <script language="javascript"> <!-- var days_of_week = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); alert(days_of_week); //  --> </script> </head> <body> </body> </html>