Previous ION Script User's Guide: ION Script Tag Reference Next

ION_BODY

The ION_BODY tag pair delimits the body section of an ION Script document. The body is the part of the ION Script document that is converted into HTML for display in a Web browser. All valid HTML tags are allowed in the body (that is, between the <ION_BODY> and </ION_BODY> tags).

Note that it is not necessary to include the <HTML> or <BODY> tags in an ION Script page. ION Script inserts these elements automatically.

Syntax

<ION_BODY
[BACKGROUND="image url"]
[BGCOLOR="rgb value or color name"]
[LINK="rgb value or color name"]
[TEXT="rgb value or color name"]
[VLINK="rgb value or color name"]
[ALINK="rgb value or color name"]
[ONLOAD="script"]
[ONUNLOAD="script"]
[Any other <BODY> attributes] >

ION and HTML content

</ION_BODY>


Note
HTML allows you to specify <BODY> attributes without using quotation marks. ION Script is based on XML, which requires the use of quotation marks. Make sure you enclose all <ION_BODY> attributes inside double quotation marks.

Attributes


Note
Several of the following attributes can be specified either as an RGB triplet, using the general syntax ATTRIBUTE="#RRGGBB", or as a valid color name, using the syntax ATTRIBUTE="color name". See http://www.htmlhelp.com/cgi-bin/color.cgi for a list of RGB values and color names. Using RGB values instead of color names is recommended because not all browsers support color names.

BACKGROUND

The URL of the background image to use for the document.

BGCOLOR

The background color of the page. Can be specified either as BGCOLOR="#RRGGBB" or BGCOLOR="color name".

TEXT

Text color. Can be specified either as TEXT="#RRGGBB" or TEXT="color name".

LINK

Color of hyperlinks. Can be specified either as LINK="#RRGGBB" or LINK="color name".

VLINK

Color of visited hyperlinks. Can be specified either as VLINK="#RRGGBB" or VLINK="color name".

ALINK

Color of active hyperlinks. Can be specified either as ALINK="#RRGGBB" or ALINK="color name".

ONLOAD

The script to execute when the page is loaded. See Using JavaScript and VBScript for information on specifying this attribute.

ONUNLOAD

Script to execute when document has been exited. See Using JavaScript and VBScript for information on specifying this attribute.

HTML Mapping

The ION_BODY tag is converted to the HTML <BODY> tag. All attributes of the <BODY> tag can be included in the ION_BODY tag. Note that the attributes listed above are simply attributes of the <BODY> tag, and are listed here for convenience.

  IDL Online Help (March 06, 2007)