how access html source code add script code header section?
hi
in joomla not have html source codes. if want add script <head> section, can 1 of following two:
1. edit template's index.php.
you can find in /templates/templatename/ folder.
2. if building own extension, add following code:
or
in joomla not have html source codes. if want add script <head> section, can 1 of following two:
1. edit template's index.php.
you can find in /templates/templatename/ folder.
2. if building own extension, add following code:
code: select all
$document = jfactory::getdocument();
$document->addscript(url of script source);
or
code: select all
$document = jfactory::getdocument();
$document->addscriptdeclaration(actual javascript code here);
Comments
Post a Comment