[TYPO3] How to include javascript in page header from plugin code?

Oliver Klee typo3-german-01 at oliverklee.de
Thu Apr 13 12:02:17 CEST 2006


Hi,

Chetan Thapliyal schrieb:
> I would like to know how one can include javascript in page header from
> plugin code.

Like this:

$GLOBALS['TSFE']->additionalHeaderData[] = '<script
type="text/javascript" src="pathtojsfile.js"></script>';

Regards,


Oliver



More information about the TYPO3-english mailing list