<cfhtmlhead>

Sometimes during development you may want to programmatically add text/content to the <head> area of the currently processing page. Most often I do this when I want to add Javascript code or link tags dynamically.

<cfhtmlhead> is a great tool to use for this as you don’t need to try and spaghetti code your header include/module.

For example:

">

TEXT

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

Note that if you use this tag after the cfflush tag on a page, an error is thrown.

Post a Comment or Leave a Trackback

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*