Railo 4.2 Reference
Choose a tag:

Tag <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.

Body

Dieses Tag darf keinen Body haben.

Beispiel

	<cfhtmlhead
		[action="string"]
		[text="string"]
		[variable="string"]>
	
Diese tag kann auch innerhalb von cfscript verwendet werden
	<cfscript>
		htmlhead
		[action="string"]
		[text="string"]
		[variable="string"];
	</cfscript>

Attribute

Die Attribute für dieses Tag sind fest vorgegeben. Ausser den nachfolgend angegebenen Attributen dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
action string No possible actions are:
  • append (default): append text to the html head
  • read: return the text already set to html head
  • reset: reset/remove text already set to hrml head
  • write: write text to html head, overwrite already existing text in html head 
  • text string No The text to add to the 'head' area of an HTML page. Everything inside the quotation marks is
    placed in the 'head' section 
    variable string No Name of variable to contain the text for htmlhead.