Dreamweaver includes several dozen code "snippets" and functions to help you quickly add JavaScript to your Web pages. These self-contained JavaScript code fragments and functions are used to perform common tasks including everything from calculating the area of a circle to opening a new pop-up window.

 

In this beginner's article, Jason shows how to use the Snippets panel, and how to store your own favourite pieces of code as snippets for re-use next time.