Suppose the following code:
var a = new Image(1, 1);
a.onload = function() {
console.log(this);
};
a.src = 'some.address.com/some/image.jpg';
When this image gets loaded, it will print itself to the console, but the output is an HTML element, like so:
<img width="10" height="10" src="http://some.address.com/some/image.jpg">
When I expect that it would print it as any other JavaScript object, something like:
Is there a way to force it to be print like this?