ToHeader Plugin

Include custom code such as javascript code in the html-head tag. With this plugin you can add jQuery scripts by simply editing your joomla articles.
Install and enable the ToHeader plugin and add for example the following code to one of your joomla articles (html editor disabled):

<toheader>
  <script src="/jquery-1.2.6/dist/jquery.pack.js"/>
  <script type="text/javascript">
    $(document).ready(function(){
      $("a").click(function(event){
        event.preventDefault();
        alert("Thanks for visiting- babu!");
      });
    });
  </script>
</toheader>


This example only works when you install jquery.pack.js from www.jquery.com in directory
jquery-1.2.6/dist/ of your website.

The plugin works only with PHP v5 and after.

Report