javascript open url code example
Example 1: javascript open url
window.location.href = "http://example.com/";
Example 2: javascript open new window
Open New Window
Example 3: jquery get origin url
console.log(window.location.origin);
window.location.href = "http://example.com/";
Open New Window
console.log(window.location.origin);