This question asks for a way to open a new window using window.open
and then inject it with a script. It was not possible because of cross-domain security issues.
However, my problem is that I want to do the exact same thing, except from the same domain to the same domain. Is this possible?
Note that .write
does not solve this problem because it wipes all the html from the page first.