title: window.open losing focus when opened from dojo dijit.dialog
body: <p>I am opening a dialog box from my application using Dojo 1.8 - dijit.Dialog. On the Dialog window there is an icon to display the help. If this help is clicked it will open a new window  (using window.open)and will show help text.</p>
  
  <p>The code works in Firefox but not in IE (All version of IE 8,9,10). The help window always goes to the back of the parent window. Alt+Tab also did not bring the help window to front. (When you are on other screen and then Alt+Tab brings the help window).</p>
  
  <p>If call the function directly in a page without dialog then it works in IE as well. If I use the dojo 1.6 then the code works in IE. The problem is only in dojo 1.8</p>
  
  <p>I have used autofocus to false, refocus to false and window.focus in the help window. But nothing helps. Help or pointers on this would be appreciated. Thanks</p>
  
  <p>Note: The application is on Xpage, so you can ignore some tags.The problem is related to the Dojo</p>
  
  <p>Code is something like this. there are 3 pages. The first page contains 2 Javascrip function and a links to open dialog. The second page is a dialog and contain a link to open Help page using window.open. Third page is just a text for Help.</p>
  
  <p><strong>Page 1</strong></p>
  
  <pre><code>&lt;a onclick="javascript:modalwindojo('Dijit Dialog','FirstDialog.xsp','dialog1')" href="#"&gt;modalwindow&lt;/a&gt;
  </code></pre>
  
  
  
  <p><strong>Page 2</strong> - Dialog page</p>
  
  <pre><code>&lt;a href="javascript:openHelp('FirstHelp.xsp');" id="link2"&gt;Help&lt;/a&gt;
  </code></pre>
  
  <p><strong>Page 3</strong> - Help Page
  Just text with onloadevent as <code>&lt;script&gt;window.focus();&lt;/script&gt;</code></p>
  
  <p>JavaScript Function</p>
  
  <pre><code>&lt;script&gt;
  function openHelp(helpUrl){  
  
      windowHelpObjectReference = window.open(helpUrl,   
              "Help", "resizable=yes,scrollbars=no,status=yes,width=700,height=500");   
      windowHelpObjectReference.focus(); 
  
  } 
  dojo.require("dijit.Dialog");
  function modalwindojo(dtitle, link, dialogId)
  {
     var dlg = dijit.byId(dialogId);
     if (!dlg) { 
      dlg = new dijit.Dialog({
      title : dtitle,
          href : link,
          autofocus :false ,
          refocus : false 
  
          }, dojo.byId(dialogId));
    }
  
   // dlg.startup();
    dlg.show();
  
  }
  
  &lt;/script&gt;
  </code></pre>