3-1-Tags:CFHtmlhead
last edited by
lmajano
on 23-Aug-2009
cfhtmlhead
Description
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.
Category
Other
Implemented
Usage Syntax
<cfhtmlhead text="String"/>
[] = Optional attribute
Attributes
| Name | Type | Required | Default | Description |
| text | String | Yes | The text to add to the 'head' area of an HTML page. Everything inside the quotation marks is placed in the 'head' section |
Example Usage
You need to login in order to comment!
Paul Klinkenberg said
at 11:49:24 PM 12-Jul-2010
As you can read here: https://jira.jboss.org/browse/RAILO-626 , there are numerous extra options within Railo for this tag :-)
<!--- read data in html head ---->
<cfhtmlhead action="read" variable="text" />
<!--- reset data defined for html head ---->
<cfhtmlhead action="reset" />
<!--- append data to html head (action attribute is optional in this case) --->
<cfhtmlhead action="append" text="susi" />
<!--- write data to html head (overwrite existing data) --->
<cfhtmlhead action="write" text="susi" />
SideBar
User Login
Comments (