Open the DevTools console. This page loads an iframe with a resource on a subdomain. This page accesses the iframe's DOM after using document.domain, otherwise there would normally be a cross-origin error.
document.domain