title: How to open a link in new tab using javascript
body: <p>I am working on a website, in which I have to open a url from backend. I am using c# now. My problem is that I want to open link in new tab instead of new window. </p>
  
  <p>My code is here:-</p>
  
  <pre><code>string url = ppHref.ToString();
  
  string newScript = "&lt;script language='javascript'&gt;window.open('" + ppHref.ToString() + "', '_blank');&lt;/script&gt;";
  
  ClientScript.RegisterStartupScript(this.GetType(),"OpenUrl", newScript);
  </code></pre>
  
  <p>Can Anybody tell me how to open this url in new tab. I don't like pop ups so I don't wanna use <code>window.open()</code>. Please help me.</p>
  
  <p>Thanks in Advance</p>