It is a very general use case to open a link in another tab or in a separate window. We prefer to use
target="_blank" attribute in HTML to open a link in new tab.
window.open("https://holycoders.com/", "_blank", "noopener")
The open method is very useful to open a new tab or window in the browser.
window.open('https://holycoders.com', '_blank', 'noopener,height=600,width=960,scrollbars=yes');
Let me warn you that it is very annoying and never recommended to open a new window on the user's system just for your own purpose (I am talking about those ads).