Writes text to the head section of a generated HTML page.
<cfhtmlhead
text = "text">
cfcache, cfflush, cfheader, cfinclude, cfsetting, cfsilent
| Attribute | Req/Opt | Default | Description |
|---|---|---|---|
|
text |
Required |
|
Text to add to the <head> area of an HTML page. |
Use this tag for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header.
If you use this tag after the cfflush tag on a page, an error is thrown.
<!--- This example adds a favicon to the HTML
Head of every page view. The extra CRLF at
the end cleans up view source. Note the
embedded tag uses double quotes and the cfhtmlhead
text attribute uses single quotes,
but it could be the other way around too.
--->
<cfhtmlhead
text='<link href="/blog/custom/img/favicon.ico" rel="shortcut icon" type="image/x-icon">#chr(13)##chr(10)#'>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000271.htm
Comments
frinky!!! said on Jul 12, 2007 at 2:54 AM : frinky!!! said on Jul 13, 2007 at 3:20 AM :