Using Web Scripting

Web pages commonly use scripting languages to define actions and objects accessible from within a browser. The most common languages in use are JavaScript (Microsoft's version is called JScript) and VBScript (Visual Basic Script). To add JavaScript or VBScript code to a new Web page, do the following:

1.
Choose Tools, Macro, Microsoft Script Editor from the menu. Or use the keyboard shortcut, Alt+Shift+F11. The Microsoft Script Editor opens up as shown in Figure 24.21, although with a different view from that in typical HTML source viewing.
Figure 24.21. Adding script code to a Web page using the Microsoft Script Editor.

Get Special Edition Using® Microsoft® Office Word 2003 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.