title: javascript open page in new tab with IE8
body: <p>I am trying to open a simple link in a new tab. I have tried searching on google, and stackoverflow but the result says, we need to change settings in browser. Is there a way to do the same using javascript?</p>
  
  <p>Here is the sample script</p>
  
  <pre><code>    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;script language="javascript"&gt;
      function gotoNewtab(){
          document.forms[0].target="_blank";
          document.forms[0].method = "post";
          document.forms[0].action = "http://www.google.com";
          document.forms[0].submit();
      }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;form name="frm"&gt;
  
          &lt;p&gt; click the below link to open the page in new tab &lt;/p&gt;
  
          &lt;p&gt; &lt;a href="##"
                 onclick="javaScript:return gotoNewtab();"&gt;
              click here &lt;/a&gt;
          &lt;/p&gt;
  
      &lt;/form&gt;   
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>