create a html code to open a javascript in new window code example
Example 1: javascript open new window with html content
var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');
Example 2: open link in new tab html
<a href="#" rel="noopener noreferrer" href="link"></a>