I have a site called site.com and I want to check if the classname is present on my other page http://site.com/subfolder and if it is yes then perform the code.
$(document).ready(function() { 
    if ($('http://site.com/subfolder classname').length > 0) {
        $('.headline').after('<div>text</div>');
    }
});
Any help is greatly appreciated.
 
     
    