goto link via javascript code example
Example 1: javascript got to url
window.location.href = "https://www.google.com"
Example 2: open another page js
window.open('https://www.codexworld.com', '_blank');
window.location.href = "https://www.google.com"
window.open('https://www.codexworld.com', '_blank');