Chapter 10. Using Dreamweaver Behaviors
IN THIS CHAPTER
- An Introduction to Dreamweaver Behaviors
- Using the Behaviors Panel
- Dreamweaver Behaviors
As we've progressed through the book, we've touched on topics such as client-side web pages and server-side applications. In the previous chapter, we mentioned tha230 forms are the stepping stone for working with server-side applications but still remain an integral part of client-side web page development. What we haven't touched on, however, are the three building blocks that make up client-side web pages or the functionality and look with which the end user interacts. At the foundation of client-side development lies the first block, HTML/XHTML. Everything we do on the web, to a certain extent, revolves aroun214/XHTML. Dreamweaver, by definition, is a tool for creatin217/XHTML pages for the web. The second building block, discussed in some detail in Chapter 7, "Advanced Page Formatting Using Style Sheets," is CSS. As we've seen, style sheets control the overall look and appearance o216/XHTML pages and again, are significantly supported by Dreamweaver. The third and final block to client-side web page development, JavaScript, has yet to be discussed.At its heart, JavaScript exists as a web-based scripting language. Whil215/XHTML defines the structure of our client-side web pages and CSS controls the "look" of our web pages, JavaScript exists to outline the logic that our web pages will have in the form of a full-blown interactive scripting language similar in nature, but independent of, the object-oriented programming language Java. For instance, you may want to add functionality to your web page that otherwise wouldn't be available throug218 or CSSsuch as creating a pop-up message, a pop-up window, a pop-up menu, or even image-based rollovers for a navigation menu. Even better, you might want to add functionality to the helpdesk page that guarantees that users enter text into all required fields, enter a number for their station ID, and even enter an email address into a text box that requires an email address. Furthermore, you might want to add functionality that forces the browser to check for a specific plug-in like Flash and have the browser react accordingly. All this and much more is possible with JavaScript.