[Typo3] How to add a function call to the bodys onLoad attribute

Richard Downes r.downes at arithon.com
Tue Jul 5 15:51:32 CEST 2005

I have written an frontend plugin which needs to add a javascript 
function call to the bodys onload tag. I've spent about two weeks trying 
to figure this out.
In my php class I added the function call like this :
$GLOBALS['TSFE']->JSeventFuncCalls['onload'][$this->prefixId] = 

It is not appearing in T3_onloadWrapper(), however there are two other 
calls in there (GL_initLayers() and GL_restoreMenu("b089e2")) which are 
generated by GMenu.

More information about the TYPO3-english mailing list