registerJs() public method
Registers a JS code block.
public void registerJs ( $js, $position = self::POS_READY, $key = null )$js string
The JS code block to be registered $position integer
The position at which the JS script tag should be inserted in a page. The possible values are:
POS_HEAD: in the head section
POS_BEGIN: at the beginning of the body section
POS_END: at the end of the body section
POS_LOAD: enclosed within jQuery(window).load(). Note that by using this position,