The information in this article applies to:
SUMMARYYou can add Microsoft Visual Basic Scripting Edition (VBScript) or JavaScript code to a Web page by using the Script Wizard. This article presents an overview of how to use the Script Wizard with Microsoft FrontPage. MORE INFORMATION
The Script Wizard lets you select objects and associated events, and pick
an action that will occur when an event takes place. After you make your
selections, the Script Wizard creates the VBScript or JavaScript for you.
Running the Script Wizard
Components of the Script WizardThe Script Wizard is divided into three panes:
The Event PaneThe Event pane provides a hierarchical view of all of the objects and events on your page. It includes ActiveX Controls and HyperText Markup Language (HTML) forms.The Action PaneThe Action pane provides a hierarchical view of the actions and properties you can use in the event handler, as well as the global variables and procedures defined for the page. When you double-click an action, the Script Wizard adds that action to the list in the Script pane. When you double-click a property, a dialog box asking you to select a value for the property appears. The type of dialog box that you will see, and the values that you can select will vary depending on the type of property you selected. After you have specified a value for a property, the Script Wizard will add that property to the list in the Script pane.The Script PaneThe Script pane has two views: List view and Code view. You can switch between views by clicking the appropriate option at the bottom of the Script Wizard window.You can use List view to assign simple actions to events or to set property values by using a point-and-click approach. If you want to use the power and full support of the scripting language, you can use Code view to write VBScript or JavaScript code. Using the Script Wizard in List View: If you script multiple actions for any given event, the actions will be executed in the order they appear in the list in the Script pane. You can use the Move Up and Move Down buttons to reorder the actions in the list. To reorder the actions in the list, you can either insert or delete an action:
The Script pane displays the actual script in the default scripting language (VBScript or JavaScript) that you specified for the page. Click anywhere in the Script pane to edit your script. Common Use for the Script WizardFollowing are some common uses for the Script Wizard.Scripting to Link to Another Page
Scripting to Hide or Show a Control
Scripting to "Bring to Front" and "Send to Back"
REFERENCESFor information about using Microsoft Forms 2.0 ActiveX Controls in FrontPage, please see the following articles in the Microsoft Knowledge Base: Q171673 FP97: How to Use Microsoft Forms 2.0 ActiveX Controls Q180822 FP98: How to Use Microsoft Forms 2.0 ActiveX Controls Additional query words: fpedit jscript vbscript ie 97
Keywords : kbdta fpedit fpactive fpscript |
Last Reviewed: September 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |