chapter31

development in a land far far away…

at the moment

History is not what happened. History is what was written down.

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.


Related Pages

Leave a Reply