Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - Get img src with getElementById to id attribute

0 votes
24 views
added Dec 16, 2020 in Javascript by lcjr Second Warrant Officer (3,820 points)
var imgSrc = document.getElementById("mysite-img-src").src;

 

Please log in or register to response this reference.

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