JavaScript is not the same thing as the programming
language Java.
The Java programming language has been used on
the web quite a bit too, but the pieces are little programs called
applets. They come in .class files. So if you see a reference
to a .class file somewhere, it's probably Java, not JavaScript.
JavaScript was started by the Netscape folks. (Wasn't
a lot of good web stuff!) At first it was called LiveScript.
JavaScript is often used as a client-side scripting language. That means that the is code is sent to the viewer's browser, and the browser interprets the code.
JavaScript is different from a programming language because most programming languages are compiled. That means that they are turned into machine code ahead of time and the computer's operating system runs it. With scripting languages, a program that is open and running on the computer interprets the code and does what it says. We say that the code is used at run time. In the case of JavaScript, the program is the browser.
Dreamweaver contains pre-written pieces of JavaScript code. Just like Dreamweaver can add HTML code to your page, it can add JavaScript code. In Dreamweaver, these pieces of code are called behaviors.