var.open in jquery code example
Example 1: open link in new tab javascript
window.open('https://www.codexworld.com', '_blank');
Example 2: javascript open url
window.location.href = "http://example.com/";
window.open('https://www.codexworld.com', '_blank');
window.location.href = "http://example.com/";