Add to Book Shelf
Flag as Inappropriate
Email this Book

Intro to Javascript for Non-Programmers

Click here to view

Book Id: WPLBN0000696336
Format Type: PDF eBook:
File Size: 0.8 MB
Reproduction Date: 2005

Title: Intro to Javascript for Non-Programmers  
Author:
Volume:
Language: English
Subject: Language, Philology, Linguistics
Collections: Technical eBooks and Manuals Collection, Technical eBooks Collection
Historic
Publication Date:
Publisher:

Citation

APA MLA Chicago

Intro to Javascript for Non-Programmers. (n.d.). Intro to Javascript for Non-Programmers. Retrieved from http://self.gutenberg.org/


Description
Technical Reference Publication

Excerpt
Excerpt: JavaScript versus JAVA: JAVA is a strongly typed, compiled programming language developed by Sun Microsystems. JavaScript, developed originally by Netscape, is a lightweight, interpreted programming language initially called LiveScript. The two languages are not related in any way. All programming languages share a certain amount of similarity.

Table of Contents
Table of Contents HoTMetaL PRO 6.0 the ultimate web development tool www.hotmetalpro.com i Chapter 1 - Introduction to JavaScript programming...................................... 1 JavaScript versus JAVA............................................................................................................... 2 Interpreted programs vs. Compiled programs.............................................................................. 2 Why Learn JavaScript .................................................................................................................. 3 What you can use JavaScript for ................................................................................................. 3 About JavaScript .......................................................................................................................... 3 Review Questions ........................................................................................................................ 4 Summary ..................................................................................................................................... 5 Chapter 2 - JavaScript Syntax...................................................................................... 6 Inserting Client Side JavaScript into an HTML Page ................................................................... 7 Syntax and Conventions .............................................................................................................. 8 Case-sensitivity........................................................................................................................ 8 Semicolons ............................................................................................................................... 8 White Space ............................................................................................................................. 8 Strings and Quotation Marks .................................................................................................... 9 Brackets, Opening and Closing .............................................................................................. 10 Comments .............................................................................................................................. 11 Variable and Function Names ................................................................................................ 12 Reserved Words ..................................................................................................................... 13 Review Questions ...................................................................................................................... 14 Summary ................................................................................................................................... 15 Chapter 3 - Basic Programming Constructs....................................................... 16 Declaring Your Variables............................................................................................................ 17 Types of Variables...................................................................................................................... 17 Using Operators ......................................................................................................................... 18 JavaScript Operators.................................................................................................................. 19 Control Structures (Loops and Branches).................................................................................. 21 Branches................................................................................................................................ 21 The if statement .................................................................................................................. 21 The switch statement .......................................................................................................... 22 Loops ..................................................................................................................................... 23 The while loop ..................................................................................................................... 23 The for loop ......................................................................................................................... 23 Functions ................................................................................................................................... 24 Built-in functions ..................................................................................................................... 24 Programmer created functions ............................................................................................... 24 Review Questions ...................................................................................................................... 26 Summary ................................................................................................................................... 27 Chapter 4 - Objects, Events, and the Document Object Model ............. 28 Object ........................................................................................................................................ 29 The new operator ....................................................................................................................... 29 The Document Object Model (DOM).......................................................................................... 30 Arrays ........................................................................................................................................ 33 Events........................................................................................................................................ 34 onClick ................................................................................................................................... 34 onSubmit................................................................................................................................ 34 onMouseOver ......................................................................................................................... 35 onMouseOut ........................................................................................................................... 35 onFocus ................................................................................................................................. 36 onChange ............................................................................................................................... 36 onBlur..................................................................................................................................... 36 onLoad................................................................................................................................... 37 onUnload ............................................................................................................................... 37 Review Questions ...................................................................................................................... 39

 
 



Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.