About Web scripts

A Web script is a type of computer code that can be used to make your Web page dynamic. For example, a Web script could be used to include a "number of visitors" counter that increments each time someone visits your Web page. Or a Web script could be used to include a countdown to a special event: "only x more days", where x decreases by 1 every day. Usually Web scripts are run by a Web browser when a Web page is opened, typically to display information produced by the script. Creating Web scripts is an advanced Office feature that requires programming knowledge. You can add Microsoft Visual Basic Scripting Edition (VBScript) or JavaScript to your page in Microsoft Word, Excel, PowerPoint, and FrontPage.

Scripting is useful for custom Web-based solutions development. It provides a full object model for the Web browser and the objects on the current page. This makes it easy to write code that manipulates elements on the page without you knowing the details of the HTML or how the objects are implemented. You can also create script code that is specifically designed to handle events that occur on objects (such as ActiveX controls) on your page.

You view and edit the HTML code, along with any script code for your Web page, using the Microsoft Script Editor.  In the Script Editor, you can add text, edit HTML tags, and edit any Web script code. You can also view your Web page as it would appear in a Web browser and edit it in this view. For detailed information about creating scripts, see Microsoft Script Editor Help.

Tips