Is it possible to replace a photo with simple text, in case the link is wrong or the photo is no longer available?
<img id="CurrentPhoto" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Stack_Overflow_logo.svg/1200px-Stack_Overflow_logo.svg.png" onerror="this.src='https://www.stackoverflowbusiness.com/hubfs/logo-so-white.png'" alt="">
With this code it is possible to replace the image in case of broken link. However, I wish I could insert text instead of the second photo. For example, make text "eg Stackoverflow" appear if the first photo is not available.
It's possible? Would any good little angel know how to help me?