Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

Pass string parameter to alert dialog box

<html> <head> <title>A Simple Page</title> <script language="javascript"> var msg1 = "Hello there", num1 = 22; alert(msg1); </script> </head> <body> </body> </html>