(I am using content.document since the code is being run from a FireFox sidebar plugin)
iElement = content.document.createElement("img");
iElement.src = "source";
iElement.style.position = "absolute";
iElement.style.left = 50;
iElement.style.top = 50;
iElement.style.zIndex = 100;
The problem is that the image is always getting placed at the bottom left corner of the page, regardless of the location mentioned.
Moreover, when I try to display the value of its x-coordinate using the code below, I get a blank message.
var x_dummy = iElement.style.left;
Please tell me how I should correct this.