a open new tab javascript code example
Example 1: javascript open url
window.location.href = "http://example.com/";
Example 2: javacript open url in new tab
window.open(url,'_blank');
window.open(url);
window.location.href = "http://example.com/";
window.open(url,'_blank');
window.open(url);