title: How to redirect inside a modal window using javascript?
body: <p>If I open a pop up window using window.showModalDialog</p>
  
  <p>Doing a </p>
  
  <pre><code>document.location.href=xxx
  </code></pre>
  
  <p>or</p>
  
  <pre><code> window.location=xxx
  </code></pre>
  
  <p>or</p>
  
  <pre><code> window.location.assign(xxx)
  </code></pre>
  
  <p>inside that window, causes a new window to be opened.</p>
  
  <p>How can I do a redirect <strong>within</strong> a modal window? Even if it works only in IE, that would be satisfactory.</p>