Microsoft KB Archive/197958

= HOW TO: Display a Random Quote When a Page Is Loaded in FrontPage 2000 =

Article ID: 197958

Article Last Modified on 6/18/2005

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q197958



IN THIS TASK
SUMMARY
 * Editing the HTML Code



SUMMARY
This article contains sample JavaScript code that displays a random quote when the HTML document is loaded.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. For this JavaScript code to function, you must type it manually in the HTML code. The FrontPage user interface does not provide a means to insert JavaScript code between the closing <\HEAD> tag and the opening  tag.

back to the top

Editing the HTML Code
 To view the HTML code, start FrontPage, Change to the page view, and click the HTML tab.  Insert the following JavaScript code between the  tag and the  tag in the HTML document:

   Add a OnLoad directive to the BODY tag to run the Jscript.

For example, the  tag should appear as follows:

</li></ol>

back to the top

Additional query words: JavaScript kbscript kbcode front page

Keywords: kbhowto kbhowtomaster kbfaq KB197958

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.