Change host page from within contained, different-domain iframe: errors in Firefox & Chrome
<p>I have a iframe app. I am getting a alert that says <strong>-error</strong> in chrome for <code>top.location.href</code> .</p>

<pre><code>jQuery.ajax({
          type : 'get',
          url : 'check_if_fb_data_set.php',
          success : function(response){
          if(jQuery.trim(response)  == 'success') {
            top.location.href = "http://mysite.com";
          } else {
                setTimeout(CheckIfFbDataSet,2000);
          }                     
        }, error : function (jqXHR, textStatus, errorThrown){
          console.log(errorThrown);
        }
});
</code></pre>

<p>I have tried </p>

<ol>
<li>location.reload()</li>
<li>window.location.href = window.location.href;</li>
<li>document.write(' meta refresh.........'); </li>
<li>document.write('&lt; script> window.location ........ &lt; /script>');</li>
</ol>

<p>Third one didn't work but all 4 other gave me the same error. I don't have other ways to test.</p>
