Javascript: Difference between location.hostname and document.domain?
It seems that document.domain is a read only property, except in Mozilla, which lets you change the value of the domain that is used for the same origin policy of (for example) AJAX requests without actually updating the page. The restrictions on this are the same rules of the Same Origin Policy. At least this … Read more