That's all I want to do. I'm very beginner in javascript but I just don't understand why this wouldn't work. I've looked across the depths of google but people are asking more complicated things. I literally just want to show an image I've stored in an array.
$(document).ready(function(){
var coolImage = new Array();
coolImage[0] = "images/2.gif";
var img = new Image();
img.src = coolImage[0];
document.write(img);
});
All I get on the page is [object HTMLImageElement]
.