modX.regClientScript
Last updated not available | Page history | Improve this page | Report an issue
modX::regClientScript¶
Register JavaScript to be injected before the closing BODY tag.
Syntax¶
API Doc: modX::regClientScript()
void regClientScript (string $src, [boolean $plaintext = false])
Example¶
Add some JS to the end of the page.
$modx->regClientScript('assets/js/footer.js');