js how to open page js code example
Example 1: open another page js
window.open('https://www.codexworld.com', '_blank');
Example 2: open another page js
<a href="https://www.codexworld.com" target="_blank">Visit CodexWorld</a>
window.open('https://www.codexworld.com', '_blank');
<a href="https://www.codexworld.com" target="_blank">Visit CodexWorld</a>