open new tab with javascript
snippet in javascript

open new tab with javascript

user9193

window.open(url,'_blank');

javascript open link in new tab

user9110

function NewTab() { 
            window.open( 
              "https://www.yourURL.com", "_blank");
}