Possible Duplicate:
Is there a difference betweennew Image()
anddocument.createElement('img')
?
What is the difference between creating image object with Image
function and createElement
function? Is there any?
var image1 = new Image;
var image2 = document.createElement('img');