<script> function incrementFallbackSrc(img, srcs) { if (typeof img.fallbackSrcIndex === 'undefined') img.fallbackSrcIndex = 0; img.src = srcs[img.fallbackSrcIndex++]; } </script> <img src="https://cdn-icons-png.flaticon.com/128/8067/8067997.png" onerror="javascript: incrementFallbackSrc(this, ['https://cdn-icons-png.flaticon.com/128/8067/8067999.png', 'https://cdn-icons-png.flaticon.com/128/6912/6912971.png' ])">