how to check the src of an img js code example Example: javascript check image src if (img.getAttribute('src') === 'on.png')