Change image source with JavaScript

function changeImage(a) so there is no such thing as a.src => just use a.

demo here

Leave a Comment