.. _fheadjs: ###################################################################### ``head_js`` — Get the JavaScript tags that will be used on the page. ###################################################################### :doc:`Asset-related functions ` ******* Summary ******* .. include:: /Reference/libraries/globals/summary/head_js.rst .. php:function:: head_js($includeDefaults = true) Get the JavaScript tags that will be used on the page. This should generally be used with echo to print the scripts in the page head. :type $includeDefaults: bool :param $includeDefaults: Whether the default javascripts should be included. Defaults to true. :returns: string ***** Usage ***** .. include:: /Reference/libraries/globals/usage/head_js.rst ******** Examples ******** .. include:: /Reference/libraries/globals/examples/head_js.rst ******** See Also ******** .. include:: /Reference/libraries/globals/see_also/head_js.rst