how to open a website js html code example
Example 1: javascript open url
window.location.href = "http://example.com/";
Example 2: open another page js
window.open('https://www.codexworld.com', '_blank');
window.location.href = "http://example.com/";
window.open('https://www.codexworld.com', '_blank');