• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Under the Hood: HTML > Inserting JavaScript

9.6. Inserting JavaScript

As Chapter 11 makes clear, Dreamweaver's Behaviors (prewritten JavaScript programs) let you add exciting interactive effects—mouse rollovers, pop-up windows, animated layers, and so on—with very little effort. But they can't do everything: When you, the native JavaScript speaker, need to wade into the depths of JavaScript programming yourself, you'll find two entrances within Dreamweaver.

The most straightforward approach, especially if you're already familiar with JavaScript programming, is to simply switch into Code view (Ctrl+` [Option-`]) and type away. Or, if you prefer, you can use Dreamweaver's Insert Script window to add your JavaScript code (see Figure 9-13).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint