More Related Content Similar to CSIS 138 Javascript Class1 (20) CSIS 138 Javascript Class110. <noscript> You need JavaScript to see this page! </noscript> 17. The alert() method <head> <script language="JavaScript"> alert ("This is an alert()"); </script> </head> 19. The alert() method <script language=”JavaScript”> var myFirstVariable; myFirstVariable = “Hello!”; alert(myFirstVariable); </script> 21. The write() method <body> <script language=”JavaScript”> document.write ("Hello World"); </script> </body> 23. The write() method <body> <script language=”JavaScript”> document.write (‘Hello “Big” World’); </script> </body> 25. The write() method <script language="JavaScript"> var firstVar; var secondVar firstVar = "Hello"; secondVar = "World!"; document.write( firstVar + “ “ + secondVar ); </script> 27. The write() method <script language="JavaScript"> var first; var last; first = “Teresa"; last = “Pelkie"; document.write(“<b>Hello “ + first + “ “ + last + “</b>”); </script> Editor's Notes The JavaScript Language consists of objects CSIS 138 Instructor Teresa Pelkie