To write text for a pop-up window

Microsoft HTML Help

To write text for a pop-up window

  • Write the text for your pop-up windows, using any text editor, in the following format:

    <SCRIPT Language=JavaScript>
    font_variable="Facename[, point size[, charset[, PLAIN BOLD ITALIC UNDERLINE]]]"
    text_variable="A Pop-up Window"
    text_variable2="Another Pop-up Window"
    </SCRIPT>

    where font_variable is the name of the variable that specifies the font attributes for the text, and text_variable is the name of the variable that specifies the text to appear in the pop-up window.

Example

The following script specifies 10 point italic Helvetica as the font to use for the text and defines one pop-up window:


<SCRIPT Language=JavaScript>

MyFont="Helvetica,10,,italic"
MyText="This is a pop-up window." </SCRIPT>

Notes

  • You can place the pop-up windows anywhere within the <BODY> start and end tags of your HTML file.
  • The text for pop-up windows can also be stored in a text file with the .js file name extension that you reference from your HTML file.