Is there a way to retrieve the X position from the left of the tag created using document.createElement('img');
var block00 = document.createElement("img");
block00.src = "images/sep1.png";
If so, how can it be done:
if (block00.getBoundingClientRect) {
var doc2 = block00.getBoundingClientRect();
var X = doc2.left;
console.log(X);
}