I gave the html page to a new open tab in the web as content. In a windows computer and android phones it works: it opens a blank page and add the html content in there. But when it is opened in safari from iPhone I get this error because the frog object is null.
How can I open a new tab in the safari from iPhone? Here is the code I wrote:
const frog = window.open();
frog.document.write(res);
frog.document.close();