Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Create a Web script on a Web page
 

Security  Security vulnerabilities in external files or controls may extend to Web pages that use those items. For example, external style sheets (files with a .css extension), script files (files with a .js extension), custom ASP.NET controls, or other items, may pose a security risk. Be sure your style sheets, add-ins, themes, executables, scripts, controls, or other files come from trusted sources.

  1. If you have not already done so, add the Insert Script command to the Tools menu.

    ShowHow?

    1. On the Tools menu, click Customize, and then click the Commands tab.
    2. In the Categories box, click Tools.
    3. Drag Insert Script from the Commands box over the Tools menu.
    4. When the Tools menu displays the menu commands, point to the Macro submenu.
    5. When the Macro submenu displays the menu commands, point to the location where you want Insert Script to appear on the menu, and then release the mouse.
    6. In the Customize dialog box, click Close.
  2. Click in your Web page where you want to add a script.
  3. On the Tools menu, point to Macro, and then click Insert Script.
  4. Use the Microsoft Script Editor (Microsoft Script Editor: Used to add text, edit HTML tags, and edit any Microsoft Visual Basic Scripting Edition (VBScript) code in a data access page. You can also view your page in the Script Editor as it would appear in a Web browser.) to write your script.
  5. Return to the Office program.
  6. To update your Web page with the changes, click Refresh Button image on the Refresh toolbar (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, click Customize on the Tools menu, and then click the Toolbars tab.).
© 2009 Microsoft Corporation. All rights reserved.