• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. Essential JavaScript > Dissecting Our First Script

Dissecting Our First Script

Our first JavaScript script wrote something in a web page—so how did it do that? We’ll take it apart step by step here to see what’s going on. First of all, like all scripts, we placed this script inside a <SCRIPT> HTML element so that the browser would know it’s dealing with a script of some kind:

<HTML> 
    <HEAD> 
        <TITLE>Our first script!</TITLE> 
    </HEAD> 

    <BODY> 
        <H1>Here we go!</H1> 
        <SCRIPT LANGUAGE="JavaScript">
					.
					.
					.
					</SCRIPT> 
    </BODY> 
</HTML> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint