title: Issues using window.opener in all browsers
body: <p>Okay, I'm having serious problems here. On my own computer, this code works just fine. But on my coworkers, it breaks in IE and Firefox.</p>
  
  <p><code>var openlocation = window.opener.location.href;</code></p>
  
  <p>breaks for "Permission Denied", on the window.opener part. So, on the opener page, I wrote a function that's stored in an external .js page:</p>
  
  <pre><code>var getLocation = function() {
      return window.location.href;
  };</code></pre>
  
  <p>and then calling that, like
  <code>var openlocation = window.opener.getLocation();</code></p>
  
  <p>Does anyone have any idea why this is breaking?</p>
  
  <p>Edit: One page is creating the popup, and they're both on the same domain.
  The popup page has the following code: </p>
  
  <pre><code>
  $(document).ready(function () {
      var openlocation = window.opener.getLocation();
      (function setTimer() {
          setInterval(function () {
              if (window.opener.location.href != openlocation) {    // they've changed screens
                  window.close();
              }
          }, 15000);
      })();
    $("input#notescancel").click(function () {
          window.close();
    });
  });
  </code></pre>
  
  <p>I've tried with both my <code>getLocation()</code> function and just using <code>window.opener.location.href</code> but, for all computers but mine, it breaks.
  Thanks.</p>