title: How do I delete an image element if it's source file doesn't exist
body: <p>I am making a site with a popup. The popup is supposed to have up to 12 images in it. I am calling my images pizza1.jpg,  pizza2.jpg,  pizza3.jpg, and so on.</p>
  
  <p>Is there any way with pure JavaScript to make the images show up only if there is actually a file with the name I have told it to look for?</p>
  
  <p><a href="https://stackoverflow.com/questions/18837735/check-if-image-exists-on-server-using-javascript">This Question</a> is similar, but all the answers are complicated, and only moderately related.</p>