What You’ll Learn in This Chapter:
▸ Best practices for creating unobtrusive scripts
▸ Separating content, presentation, and behavior
▸ Following web standards to create cross-browser scripts
▸ Reading and displaying browser information
▸ Using feature sensing to avoid errors
In this chapter, you’ll learn some guidelines for creating scripts and pages that are easy to maintain, easy to use, and follow web standards. This is known as unobtrusive scripting: Scripts add features without getting in the way of the user, the developer maintaining the code, or the designer building the layout of the site. You’ll also learn how to make sure your scripts will work in multiple browsers, ...