When I run my code,

document.images.imageName.src=this.h_image();


I got the error message: “document.images.imageName is null or not an object”

but using the alert(this.h_image()), there is ../img/image1.jpg in a alert box.

Why can get this error?