HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
PDF The popular standard, used most often with the free Acrobat® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
In just 24 lessons of one hour or less, Sams Teach Yourself JavaScript in 24 Hours helps you learn the fundamentals of programming using the JavaScript language.
Designed for beginners with no previous programming experience, this book’s straightforward, step-by-step approach shows you how to use JavaScript to add a wide array of interactive features and effects to your web pages.
Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.
Learn how to:
Part I: First Steps with JavaScript
1 Introducing JavaScript
2 Writing Simple Scripts
3 Using Functions
4 DOM Objects and Built-in Objects
Part II: Cooking with Code
5 Numbers and Strings
6 Arrays
7 Program Control
Part III: Objects
8 Object-Oriented Programming
9 Scripting with the DOM
10 Meet JSON
Part IV: HTML5 and CSS3
11 JavaScript and HTML5
12 JavaScript and CSS
13 Introducing CSS3
Part V: Using JavaScript Libraries
14 Using Libraries
15 A Closer Look at jQuery
16 The
Please download the code files associated with Sams Teach Yourself JavaScript in 24 Hours here.
Writing Simple JavaScript Programs for Your Web Page
Part I: First Steps with JavaScript
HOUR 1: Introducing JavaScript
Web Scripting Fundamentals
Server- Versus Client-Side Programming
JavaScript in a Nutshell
Where JavaScript Came From
The Script Tag
Introducing the DOM
Talking to the User
HOUR 2: Writing Simple Scripts
Including JavaScript in Your Web Page
JavaScript Statements
Variables
Operators
Capturing Mouse Events
HOUR 3: Using Functions
General Syntax
Calling Functions
Passing Arguments to Functions
Returning Values from Functions
Scope of Variables
HOUR 4: DOM Objects and Built-in Objects
Interacting with the User
Selecting Elements by Their ID
Accessing Browser History
Using the location Object
Browser Information–The navigator Object
Dates and Times
Simplifying Calculation with the Math Object
Part II: Cooking with Code
HOUR 5: Numbers and Strings
Numbers
Strings
Boolean Values
HOUR 6: Arrays
Arrays
HOUR 7: Program Control
Conditional Statements
Loops and Control Structures
Setting and Using Timers
Part III: Objects
HOUR 8: Object-Oriented Programming
What Is Object-Oriented Programming?
Object Creation
Extending and Inheriting Objects Using prototype
Encapsulation
Using Feature Detection
HOUR 9: Scripting with the DOM
DOM Nodes
Selecting Elements with getElementsByTagName()
Reading an Element’s Attributes
Mozilla’s DOM Inspector
HOUR 10: Meet JSON
What Is JSON?
Accessing JSON Data
Data Serialization with JSON
JSON Data Types
Simulating Associative Arrays
Creating Objects with JSON
JSON Security
Part IV: HTML and CSS
HOUR 11: JavaScript and HTML5