title: open a new tab and don't lose focus
body: <p>Hello I'm Using javascript, I want to open a new page in a different tab, but remain focused on the current tab. I know I can do it like this:</p>
  
  <p><strong>JS</strong></p>
  
  <pre><code>document.getElementById("test").addEventListener("click", openNewBackgroundTab, false);
  
  function openNewBackgroundTab(){
      var a = document.createElement("a");
      a.href = "http://www.3nytechnology.com/";
      var evt = document.createEvent("MouseEvents");    
      evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, false, 0, null);
      a.dispatchEvent(evt);
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;a id="test" href="http://www.stupidcodes.com" target="_blank" &gt;Open Google&lt;/a&gt;
  </code></pre>
  
  <p>but this code is not working in FireFox 26.0</p>
  
  <p>can any one help me to solve this problem....</p>