Sams Teach Yourself JavaScript in 24 Hours
- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
- Part I: Getting Started
- Hour 1. Understanding JavaScript
- Hour 2. Creating a Simple Script
- Hour 3. How JavaScript Programs Work
- Part II: Learning JavaScript Basics
- Hour 4. Using Functions and Variables
- Hour 5. Using Strings and Arrays
- Hour 6. Testing and Comparing Values
- Hour 7. Repeating Yourself: Using Loops
- Hour 8. Using Math and Date Functions
- Part III: The Document Object Model (DOM)
- Hour 9. Working with the Document Object Model
- Hour 10. Responding to Events
- Hour 11. Using Windows and Frames
- Hour 12. Getting Data with Forms
- Hour 13. Using Graphics and Animation
- Part IV: Moving on to Advanced JavaScript Features
- Hour 14. Creating Cross-Browser Scripts
- Hour 15. Creating Custom Objects
- Hour 16. Working with Sounds and Plug-Ins
- Hour 17. Debugging JavaScript Applications
- Part V: Working with Dynamic HTML (DHTML)
- Hour 18. Working with Style Sheets
- Hour 19. Using Dynamic HTML (DHTML)
- Hour 20. Using Advanced DOM Features
- Part VI: Putting It All Together
- Hour 21. Improving a Web Page with JavaScript
- Hour 22. Creating a JavaScript Game
- Hour 23. Creating DHTML Applications
- Hour 24. JavaScript Tips and Tricks
- Part VII: Appendices
- Appendix A. Other JavaScript Resources
- Appendix B. Tools for JavaScript Developers
- Appendix C. Glossary
- Appendix D. JavaScript Quick Reference
- Appendix E. DOM Quick Reference
Appendix C. Glossary
- ActiveX
-
A technology developed by Microsoft to allow components to be created, primarily for Windows computers. ActiveX components, or controls, can be embedded in Web pages.
- anchor
-
In HTML, a named location within a document, specified using the <a> tag. Anchors can also act as links.
- argument
-
A parameter that is passed to a function when it is called. Arguments are specified within parentheses in the function call.
- attribute
-
A property value that can be defined within an HTML tag. Attributes specify style, alignment, and other aspects of the element defined by the tag.
- browser sensing
-
A scripting technique that detects the specific browser in use by clients to provide compatibility for multiple browsers.
- Cascading Style Sheets (CSS)
-
The W3C's standard for applying styles to HTML documents. CSS can control fonts, colors, margins, borders, and positioning.
- conditional
-
A JavaScript statement that performs an action if a particular condition is true, usually using the if statement.
- decrement
-
To decrease the value of a variable by one. In JavaScript, this can be done with the decrement operator, --.
- deprecated
-
A term the W3C applies to HTML tags or other items that are no longer recommended for use, and may not be supported in the future. For example, the <font> tag is deprecated in HTML 4.0, since style sheets can provide the same capability.
- Document Object Model (DOM)
-
The set of objects that JavaScript can use to refer to the browser window and portions of the HTML document. The W3C (World Wide Web Consortium) DOM is a standardized version supported by the latest browsers, and allows access to every object within a Web page.
- Dynamic HTML (DHTML)
-
The combination of HTML, JavaScript, CSS, and the DOM, which allows dynamic Web pages to be created. DHTML is not a W3C standard or a version of HTML.
- element
-
A single member of an array, referred to with an index. In the DOM, an element is a single node defined by an HTML tag.
- expression
-
A combination of variables, constants, and operators that can be evaluated to a single value.
- feature sensing
-
A scripting technique that detects whether a feature, such as a DOM method, is supported before using it to avoid browser incompatibilities.
- function
-
A group of JavaScript statements that can be referred to using a function name and arguments.
- global variable
-
A variable that is available to all JavaScript code in a Web page. It is declared (first used) outside any function.
- Hypertext Markup Language (HTML)
-
The language used in Web documents. JavaScript statements are not HTML, but can be included within an HTML document.
- increment
-
To increase the value of a variable by one. In JavaScript, this is done with the increment operator, ++.
- Java
-
An object-oriented language developed by Sun Microsystems. Java applets can be embedded within a Web page. JavaScript has similar syntax, but is not the same as Java.
- JavaScript
-
A scripting language for Web documents, loosely based on Java's syntax, developed by Netscape. JavaScript is now supported by the most popular browsers.
- layer
-
An area of a Web page that can be positioned and can overlap other sections in defined ways. Layers are also known as positionable elements.
- local variable
-
A variable that is available to only one function. It is declared (first used) within the function.
- loop
-
A set of JavaScript statements that are executed a number of times, or until a certain condition is met.
- method
-
A specialized type of function that can be stored in an object, and acts on the object's properties.
- node
-
In the DOM, an individual container or element within a Web document. Each HTML tag defines a node.
- object
-
A type of variable that can store multiple values, called properties, and functions, called methods.
- property
-
A variable that is stored as part of an object. Each object can have any number of properties.
- rule
-
In CSS, an individual element of a style block that specifies the style for an HTML tag, class, or identifier.
- selector
-
In a CSS rule, the first portion of the rule that specifies the HTML tag, class, or identifier that the rule will affect.
- tag
-
In HTML, an individual element within a Web document. HTML tags are contained within angle brackets, as in <body> and <p>.
- text node
-
In the DOM, a node that stores a text value rather than an HTML element. Nodes that contain text, such as paragraphs, have a text node as a child node.
- VBScript
-
A scripting language developed by Microsoft, with syntax based on Visual Basic. VBScript is supported only by Microsoft Internet Explorer.
- World Wide Web Consortium (W3C)
-
An international organization that develops and maintains the standards for HTML, CSS, and other key Web technologies.
- XHTML (Extensible Hypertext Markup Language)
-
A new version of HTML developed by the W3C. XHTML is similar to HTML, but conforms to the XML specification.
- XML (Extensible Markup Language)
-
A generic language developed by the W3C (World Wide Web Consortium) that allows the creation of standardized HTML-like languages, using a DTD (Document Type Definition) to specify tags and attributes.
Appendix D. JavaScript Quick Reference | Next Section

Account Sign In
View your cart