how to open web page on js code example
Example 1: javascript open url
window.location.href = "http://example.com/";
Example 2: open another page js
<a href="https://www.codexworld.com" target="_blank">Visit CodexWorld</a>
window.location.href = "http://example.com/";
<a href="https://www.codexworld.com" target="_blank">Visit CodexWorld</a>