title: How do I prevent "document.referrer" not to contain the value of a signing call back, but to read the parent URl after the call back
body: <p>I have a page with an iframe and i use document.referrer to obtain the parent url.
  But users have to signing to Microsoft online first, then the page loads.Here is a snippet of my code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var isInIframe = (parent !== window);
  if (isInIframe) {
    parentRawUrl = document.referrer;
  } else {
    parentRawUrl = window.top.location.href;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The referrer value contains the url of the signing page,I have to refresh the page to get the correct value or the parent url.</p>
  
  <p>How do I force the referrer value not to take the signing url, but only the parent url which contains the iframe.</p>