window.location
<p>if I have a hostname as:</p>

<p><a href="http://sample.somedomain.com" rel="nofollow">http://sample.somedomain.com</a></p>

<p>and in Javascript I do window.location.hostname would I get "somedomain.com" or "sample.somedomain.com" ?</p>

<p>If not, how would I be able to get sample.somedomain.com?</p>
