How to get the domain name without subdomains?
e.g. if the url is \"http://one.two.roothost.co.uk/page.html\" how to get \"roothost.co.uk\"?
You can try this in JavaScript:
JavaScript
alert(window.location.hostname);
It will return the hostname.