I was wondering what would be the best way to execute a java-script code only on specific pages.
Let\'s imagine we have a template-based web-site, rewrite rule for t
Set a class attribute to your body tag.
class
And then in your script..
$(function(){ if($('body').is('.PageType')){ //add dynamic script tag using createElement() OR //call specific functions } });