how to open new page with data javascript code example Example: open link in new tab javascript window.open('https://www.codexworld.com', '_blank');