You are here: irt.org | FAQ | JavaScript | Misc | Q1392 [ previous next ]
What you want to do can't be done from two widely different domains without signing your JavaScript code (possible with Netscape Navigator, but the user would be asked if it was okay for your code to so something.) If however they where from xxx.domainname.com, and yyy.domainname.com and domainname.com was the same in both then it might be possible in JavaScript 1.1+ enabled browsers by setting the documents domain to domainname.com using:
<script language="JavaScript1.1"><!-- document.domain = 'domainname.com'; //--></script>