I opened a child window by using window.open() in jquery.
var child = window.open("http://localhost/example.html");
console.log(child);
console.log(child.document);
when I check the console logs, it returns empty DOM-elements
I almost tried everything but nothing changes.
check the img pls haha
So the goal is to open an html file in new window as child and save it as image file by Html2canvas!
All I need is to get child window's elements!
Things I tried :
child.document.getElementById("myDiv")