Answer the question
In order to leave comments, you need to log in
How to open a window and pass html to it?
var html = ""
var окно = window.open("about:blank", 'name')
окно.document.write(html)
Answer the question
In order to leave comments, you need to log in
The documentation says:
As long as you do not create a different name for each new window, the call will go to the already open window, and access to its DOM is possible only if security requirements are met. For this reason the code fulfills only at opening.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question