<cfhtmlbody>

Writes the text specified in the text attribute to the 'body' section of a generated HTML page. The cfhtmlbody tag can be useful for embedding JavaScript code, or placing other HTML tags that should go at the bottom of the page just before the closing body tag.

This tag may have a body.

This tag is also supported within <cfscript>

Attribute Description Default
text
string, optional

The text to add to the 'head' area of an HTML page. Everything inside the quotation marks is placed in the 'head' section

variable
string, optional

Name of variable to contain the text for htmlbody.

id
string, optional

ID of the snippet that is added, used to ensure that the same snippet will not be added more than once.

action
string, optional

possible actions are:

  • append (default): append text to the html head
  • read: return the text already set to html head
  • reset: reset/remove text already set to hrml head
  • write: write text to html head, overwrite already existing text in html head
  • flush: writes the buffer in the html head to the response stream

append

<cfhtmlbody
    [text=string]
    [variable=string]
    [id=string]
    [action=append|read|reset|write]
><!--- body --->[</cfhtmlbody>]

Examples

There are currently no examples for this tag.

See also