jquery window open url on current page code example
Example 1: window open same tab
window.open("https://www.youraddress.com","_self")
Example 2: javascript open url
window.location.href = "http://example.com/";
window.open("https://www.youraddress.com","_self")
window.location.href = "http://example.com/";