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.
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?
This Question is similar, but all the answers are complicated, and only moderately related.