Murach's JavaScript and DOM Scripting
How to code a JavaScript application

In this chapter, you’ll learn how to code your first JavaScript applications that get input, do calculations, and display output. That will get you off to a fast start and give you the perspective you need for learning rapidly in subsequent chapters. To see how well this book works, you can download this chapter and try it out for yourself.

Chapter 2 How to code a JavaScript application
How to edit and test your web pages 44
How to edit a web page with Notepad++ 44
How to test a web page 46
How to display error messages in Firefox 48
Basic JavaScript skills 50
How to include JavaScript with the script tag 50
How to code JavaScript statements 52
How to create identifiers 54
The primitive data types of JavaScript 56
How to code numeric and string expressions 58
How to declare variables and assign values to them 60
How to use objects in JavaScript 62
An introduction to objects, properties and methods 62
How to use the window and document objects 64
How to use the Number, String, and Date objects 66
How to get and display data with a Textbox object 68
How to code control statements 70
How to code conditional expressions 70
How to code if statements 72
How to code while and for statements 74
How to create and use functions 76
How to create and call a function 76
How to code an event handler 78
The Future Value application 80
The XHTML code 80
The JavaScript code 82




Murach's JavaScript and DOM Scripting

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.