Presentation is loading. Please wait.

Presentation is loading. Please wait.

Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web.

Similar presentations


Presentation on theme: "Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web."— Presentation transcript:

1 Beginning JavaScript 4 th Edition

2 Chapter 1 Introduction to JavaScript and the Web

3 Chapter 1 Objectives  What is JavaScript?  What do you need in order to use JavaScript?  What can JavaScript do for you?

4 What is JavaScript?  A computer language: a series of instructions that tell the computer to do something

5 What is JavaScript?  An interpreted language rather than a compiled language

6 What is JavaScript?

7  JavaScript is interpreted when the code is run. This interpretation has to be repeated every time the code is run.

8 What is JavaScript?  JavaScript is not Java

9 What do you need? All you need to create and use JavaScript is: A text editor, such as Notepad A Web browser, such as Firefox (FF) or Internet Explorer (IE) to view your pages in

10 What can JavaScript do for you?  Add interactivity to your Web pages  Help you obtain information from visitors to your Web site  Enable you to validate the information you receive

11 Adding JavaScript to your pages  Insert JavaScript code in HTML/XHTML pages between an opening and closing script tag:

12 Adding JavaScript to your pages  It’s good practice to include a type attribute in the opening script tag:

13 Adding JavaScript to your pages 

14 Adding JavaScript to your pages  document.bgColor="RED";

15 Adding JavaScript to your pages  // script block 1 document.bgColor="RED";

16 Using JavaScript JavaScript enables you to make your Web pages


Download ppt "Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web."

Similar presentations


Ads by Google