title: javascript redirection issue
body: <p>i have 2 php files  aff.php and goaff.php</p>
  
  <p>in aff.php i execute some functions and then redirect the user to goaff.php</p>
  
  <p>aff.php code</p>
  
  <pre><code>&lt;?
   here some php functions excuted
  ?&gt; 
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  top.location.replace("http://www.example.com/goaff.php?id=text");
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>in goaff.php also i execute another php code and then redirect to website</p>
  
  <p>goaff.php code</p>
  
  <pre><code>&lt;?
  here an php function excuted using id from aff.php then redirect
  
  $url = "http://www.example.com";
  header("Location: $url");
  ?&gt;
  </code></pre>
  
  <p>my issue is with aff.php , with some users it doesn't redirect to goaff.php at all , i have test it by tracking the id from aff.php and log the results in a database , i need to know if there is something wrong with the redirection method in aff.php or not , i used javascript top.location.replace to prevent embedding the page inside frames and also to get sure javascript is enabled in the user browser but it logs more than 40% from the users are not redirected to goaff.php</p>