Documentation

BX.loadScript

Load and execute script or series of scripts. Scripts will be loaded via DOM means, without XMLHttpRequest.

void 
BX.loadScript(
 string|array script[,
 function callback[
 DOMDocument doc]]
);

The function will load and execute a script or series of scripts. Scripts will be loaded via DOM means, without XMLHttpRequest. If an array of scripts and handler are passed, the handler will be called after all scripts are loaded.

Function parameters

Parameter Description
script Executed script
callback Handler
DOMDocument doc


© «Bitrix24», 2001-2024