Posts Tagged by w3 validation
How to add external javascript and stylesheet in joomla component
| September 17, 2009 | Posted by Subikar under component, javascript, joomla, stylesheet |
This is very easy step you can add external javascript or css in head tag of the page. According to seo you cannot add javascript/css in the middle of the page. So here is the code snippet. $document =& JFactory::getDocument(); $document->addStyleSheet($stylesheeturl.’styles.css’); $document->addScript($jsurl.’scripts.js’); Have a happy w3c validate page