#1 Mensagem de erro ao não carregar imagem Sex Nov 01, 2013 3:52 pm
Admin
Admin
código que mostra como exibir uma mensagem de erro se uma imagem não for encontrada. Muito útil para testes em sites novos.
- Código:
<html>
<head>
<title>Image Error Test</title>
</head>
<body>
<p>The image below attempts to load a file that doesn't exist.</p>
<img src="blue.gif"
onerror="alert('An error occurred loading the image.')" />
</body>
</html>