B
Bani
The following code works fine if it is executed in the same window
where "node" belongs. But if node belongs to a document in another
window (popup), then I get an error because the created image belogs to
the wrong document:
img = new Image();
img.src = "image.gif";
node.appendChild(img);
My question: How can I specify the document where an image belongs?
where "node" belongs. But if node belongs to a document in another
window (popup), then I get an error because the created image belogs to
the wrong document:
img = new Image();
img.src = "image.gif";
node.appendChild(img);
My question: How can I specify the document where an image belongs?