I am having a bit of a battle with something that seems simple. I have a [javascript] string that has DOM elements in it and would like to open a new window (window.open()?) and
If you need in new tab you can use this.
const win = window.open('about:blank', '_blank'); win.document.write('test'); win.focus();