Documentation

ShowBodyScripts

public function ShowBodyScripts(
);

The method prints strings and JS scripts, allocated at the end of the <body>. To move a random string to the end of page, use the following call:

Bitrix\Main\Page\Asset::getInstance()->addString('<script></script>',false, Bitrix\Main\Page\AssetLocation::BODY_END);

Or fully move files of a module via the command $APPLICATION->MoveJSToBody('im');

Function parameters

No parameters



© «Bitrix24», 2001-2024
Up