references:joomla.framework:document:jdocument-addscriptaddScript
Adds a linked script to the page Syntaxvoid addScript ( $url, $type )
ExamplesThe following example adds a linked script to the header of the current document. Example global $mainframe; $document = &JFactory::getDocument(); $document->addScript( JURI::base() . 'includes/js/overlib_mini.js' ); Might add the following to the head tag: Result <script type="text/javascript" src="http://127.0.0.1/joomla15/includes/js/overlib_mini.js"></script> |


