How to open a new window with HTML in JavaScript?
You can use window. open to open a new window/tab(according to browser setting) in javascript. By using document. write you can write HTML content to the opened window.
What is window open () in JavaScript?
Window.open() The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.