title: Javascript redirect does not work
body: <p>The following codes displays the alert, but does not take me to the requested page.</p>
  
  <pre><code>function redirect() {
      alert('runs');
      parent.main.document.location = "url.php";
  }
  </code></pre>
  
  <p>I'm using frames, I want the page to load into the frame named 'main'. Thanks for any help.</p>