<cfhtmlhead>
Writes the text specified in the text attribute to the 'head' section of a generated HTML page.
The cfhtmlhead tag can be useful for embedding JavaScript code, or placing other HTML tags such, as META, LINK, TITLE, or BASE in an HTML page header.
This tag may have a body.
This tag is also supported within <cfscript>
<cfhtmlhead
text=string
force=boolean
variable=string
id=string
action=append|read|reset|write
><!--- body --->[</cfhtmlhead>]
Examples
Simple Example
<cfhtmlhead text="_Read_Action"><cfhtmlhead action="read" variable="res"><br><cfoutput>#res#</cfoutput>
<cfhtmlhead action="write">Started_Write_action</cfhtmlhead><cfhtmlhead action="write">Ended_Write_action</cfhtmlhead>
See also
- WriteOutput()
- <cfcontent>
- <cfheader>
- <cfhtmlbody>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)