How can I select an element by classname in another page?
<p>I have a site called site.com and I want to check if the <code>classname</code> is present on my other page <a href="http://site.com/subfolder" rel="nofollow">http://site.com/subfolder</a> and if it is yes then perform the code.</p>

<pre><code>$(document).ready(function() { 
    if ($('http://site.com/subfolder classname').length &gt; 0) {
        $('.headline').after('&lt;div&gt;text&lt;/div&gt;');
    }
});
</code></pre>

<p>Any help is greatly appreciated.</p>
