How to Use Java Script in Microsoft Office

The Microsoft Office FrontPage application allows you to use JavaScript when you create Web pages or scripts for your network or Internet website. You add the JavaScript directly in the HTML view in the editor. FrontPage gives you the ability to use a designer or an HTML editor when you create each JavaScript function in your pages.

Instructions

    • 1

      Open the Microsoft Office FrontPage application on your desktop. Open your project and double-click the file you want to use to add the JavaScript.

    • 2

      Click the "HTML" tab at the bottom of the window. You switch to a view where you can add JavaScript to your file.

    • 3

      Add the "script" tags. The opening and closing script tags tell the user's browser that JavaScript is located within the two tags. Add the following code between the opening and closing "head" tags:

      <script type="text/javascript">
      </script>

    • 4

      Add your JavaScript code. You must enter the code within the script tags. For instance, the following code displays a message to the user:

      alert('Welcome to my page');

    • 5

      Save the file and click "View in Browser" to see the changes in your browser.

Related Searches:

References

Comments

Related Ads

Featured