Get the parent document.domain
<p>I'm trying to figure it out, Say that i have a domain <code>subdomain.domain.com</code>, when I check the <code>document.domain</code> i'm getting the result <code>subdomain.domain.com</code>, what can I do to get only the original domain without the sub domain, for example: <code>domain.com</code></p>

<p>Many thanks!</p>
