Up and Running with JavaScript

Before you look more at DHTML, you will learn the basics of JavaScript, which is a scripting language you can use to implement DHTML. In this section, you will learn JavaScript fundamentals, which will enable you to move on to more complicated examples. If you are already familiar with Visual Basic, you will be able to quickly pick up on how JavaScript works. Comparisons will be made as often as possible to help you get a feeling for the similarities and dissimilarities.

First, look at how to write a statement that will declare a variable. You use the var keyword instead of the Dim keyword that you would use in Visual Basic. Also, statements in JavaScript end in a semicolon. Look at the following line: ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.