references:joomla.framework:application:japplication-addcustomheadtagTable of Contents
addCustomHeadTag
Adds a custom HTML string to the head block of the current page being processed. The method is deprecated and provided for backwards compatibility with Joomla! 1.0. It is scheduled to be removed in future versions. Use JDocumentHTML::addCustomTag instead. Syntaxvoid addCustomHeadTag ( $html )
ExamplesThe following code will insert a head element into the page that will link to the file samplejavascript.js. Example function insertCustomHeader() { global $mainframe; $customHead = '<script language="JavaScript" ' . 'src="samplejavascript.js" ' . 'type="text/javascript"></script>' ; $mainframe->addCustomHeadTag( $customHead ); } insertCustomHeader(); |


