Adding blank page option via setAttribute in javascript
<p>I can add an <code>a</code> element in js via this:</p>

<pre><code>var mydiv = document.getElementById("myDiv");
var aTag = document.createElement('a');
aTag.setAttribute('href',"yourlink.htm");
aTag.innerHTML = "link text";
mydiv.appendChild(aTag);
</code></pre>

<p>But i want also make sure that this link opens in a new page. How can i achieve this?</p>
