0
Which img is gonna be loaded first ??
<img id="myimg" src="orange.png" alt="" /> <script> var el = document.getElementById("myimg"); el.src = "apple.png"; </script> **************************** In this code if we but the script tag in the end , and as u know the html elements will be loaded first , then the js code will be loaded . So which img will appear first ?? Or just the second one will appear ??
3 ответов