opening a new tab using javascript
<p>Iam trying to Open a URL in New Browser Tab by passing it to window.open function. I don't have anchor element here and this action is not triggered by an on-click event.</p>

<pre><code>FileOpen.openDocument = function(file_id){
  var URL = &lt;ANOTHER_SITE&gt;+"/index.do?docId="+file_id;
  window.open(URL,"_newtab");
}
</code></pre>

<p>This invokes the Window as a popup and not in new tab in Chrome. In Firefox it opens in new tab but the URL is wrong in both Browsers as shown below</p>

<pre><code>&lt;CURRENT_SITE&gt;/jsp/&lt;ANOTHER_SITE&gt;/index.do?docId=&lt;ID&gt;
</code></pre>

<p>Can anyone suggest how to implement this. I wish to open the URL in a new tab in all the browsers.</p>

<p>Thanks,
Prasanna</p>
