title: javascript - open link as new window in vuejs2 template
body: <p>I need to open a new window with a certain height and width.</p>
  
  <p>in vuejs2 I have something like this:</p>
  
  <blockquote>
  <pre><code>&lt;el-table-column label="Link" width="80"&gt;
    &lt;template scope="props"&gt;
      &lt;a v-bind:href="''+props.row.link+''" target="chart"&gt; Link to chart &lt;/a&gt;
    &lt;/template&gt;
  &lt;/el-table-column&gt;
  </code></pre>
    
    <p>and in props.row.link have: <a href="http://host/charts/index.php?par=sth" rel="nofollow noreferrer">http://host/charts/index.php?par=sth</a>
    So this href open in new tab but without height and width and not in new window.</p>
  </blockquote>
  
  <p>At html is so simple:</p>
  
  <pre><code>&lt;a href="http://host/charts/index.php?par=1" onclick="window.open('http://host/charts/index.php?par=1', 'chart', 'width=1225, height=770'); return false;"&gt;Link to chart&lt;/a&gt;
  </code></pre>
  
  <p>How to achieve this in vue js 2,
  maybe as click method?</p>