Lucee Tag Reference
Tag <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.
Body
This tag may have a body.
Example
<cfhtmlbody [action="string"] [id="string"] [text="string"] [variable="string"]> [</cfhtmlbody>]
This tag is also supported within cfscript
<cfscript> htmlbody [action="string"] [id="string"] [text="string"] [variable="string"] { } </cfscript>
Attributes
The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name | Type | Required | Description |
---|---|---|---|
action | string | No | possible actions are: |
id | string | No | ID of the snippet that is added, used to ensure that the same snippet will not be added more than once. |
text | string | No | 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 | No | Name of variable to contain the text for htmlbody. |