javascript onclick go to url new window code example
Example 1: open link in new tab javascript
window.open('https://www.codexworld.com', '_blank');
Example 2: javascript open new window with html content
var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');