I have a web in ASP and im trying to add a script in JavaScript to modify the src attribute (not to change the image, just to modify the src attribute).
And when I implement it the image of the web disappear.
I directly copy this code in my asp code:
document.getElementById ("myelementid").src = "inventedname.jpg"; </script>
2.1m questions
2.1m answers
60 comments
56.8k users