JS - Get img src with getElementById to id attribute

0 votes
205 views
added Dec 16, 2020 in Javascript by lcjr First Warrant Officer (11,970 points)
var imgSrc = document.getElementById("mysite-img-src").src;

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...