title: TCPDF open links in new tab/window
body: <p>How to open links in new tab/window which is in pdf document. I tried <code>target="_blank"</code> but it did not work. I was found <code>javascript</code> solution on the internet. But how I can use <code>javascript</code> in tcpdf. </p>
  
  <p>I tried the following: </p>
  
  <pre><code>$text = 'bla bla bla bla bla bla bla bla&lt;br&gt;';
  $url = "http://google.com";
  $links = ' &lt;a href="javascript:open_win('.$url.');"&gt;Click me&lt;/a&gt; 
             &lt;a href="'.$url.'" target="_blank"&gt;Click me&lt;/a&gt; ';
  
  $output = $text.$links; $pdf-&gt;writeHTML($output);
  </code></pre>
  
  <p>But it did not work.</p>