OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <head> | |
3 <script> | |
4 function onload() { | |
5 document.getElementById("1").setAttribute("src", ""); | |
6 document.getElementById("2").removeAttribute("src"); | |
7 document.getElementById("3").setAttribute("src","resources/green.jpg"); | |
8 } | |
9 </script> | |
10 </head> | |
11 <body onLoad="onload()"> | |
12 <span>Test to check for image update when source is changed/cleared</span><br> | |
13 <img id="3"> | |
14 <img alt="1" id="1" src="resources/green.jpg"> | |
spartha
2013/07/30 15:50:29
Added alt attribute for the images, without source
| |
15 <img alt="2" id="2" src="resources/green.jpg"> | |
16 </body> | |
17 </html> | |
OLD | NEW |