title: see if src of img exists
body: <p>when I place an img tag I create the src attribute dynamically. Is there a way of testing if the src (path where the image is located) actually exists with javascript in order to avoid getting:</p>
  
  <p><img src="https://i.stack.imgur.com/3xQsD.png" alt="enter image description here"></p>