<!DOCTYPE html> | |
<head> | |
<script> | |
function onload() { | |
document.getElementById("1").setAttribute("src", ""); | |
document.getElementById("2").removeAttribute("src"); | |
document.getElementById("3").setAttribute("src","resources/green.jpg"); | |
} | |
</script> | |
</head> | |
<body onLoad="onload()"> | |
<span>Test to check for image update when source is changed/cleared</span><br> | |
<img id="3"> | |
<img alt="1" id="1" src="resources/green.jpg"> | |
<img alt="2" id="2" src="resources/green.jpg"> | |
</body> | |
</html> |