Conversely, VBScript is a full-featured Microsoft product. Both VBScript and JavaScript are scripting languages,
which means that you can write the code in any text editor and compile it at runtime. JavaScript
enjoys more support than VBScript. JavaScript can be rendered by both Netscape and Microsoft browsers
(as well as other browsers such as WebTV, Opera, and Sun??™s HotJava), whereas VBScript is read only by
Internet Explorer on Windows systems. Both languages have their fans. In Dreamweaver, both types of code
are inserted in the Web page in the same manner.
Inserting JavaScript and VBScript
If only mastering JavaScript or VBScript were as easy as inserting the code in Dreamweaver! Simply go to
the Script menu on the Common category of the Insert bar and click the Script button, or choose Insert ???
HTML ??? Script Objects ??? Script and enter your code in the Insert Script dialog box. After you click OK, a
Script icon appears in place of your script.
TIP TIP
200
Designing and Crafting Core Pages Part II
Of course, JavaScript or VBScript instruction is beyond the scope of this book, but every working Web
designer must have an understanding of what these languages can do. Both languages refer to and, to varying
degrees, manipulate the information on a Web page.
Pages:
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448