JavaScript can change HTML attribute values.
In this case JavaScript changes the source attribute of an image.