Actions

JDocumentHTML/addCustomTag

From Joomla! Documentation

Revision as of 10:17, 9 September 2008 by Chris Davenport (Talk | contribs)

Adds a custom HTML string to the document head.

Syntax

void addCustomTag( $html )

where:

Argument Data type Description Default
$html string Custom HTML string to be added.

Example

Adding a comment to the HTML head section:

$doc =& JFactory::getDocument();
$doc=>addCustomTag( '<!-- This is a comment. -->' );

See also