What is .src in JavaScript?

What is .srcin the JavaScript code below?

function jsDropDown(imgid,folder,newimg) {
    document.getElementById(imgid).src="http://www.cookwithbetty.com/" + folder + "/" + newimg + ".gif";
}
+3
source share
4 answers

This is the srcDOM Property of the element <img>it is dealing with.

+9
source

It displays the src attribute of the img element. (Although this is a DOM , not JS)

+1
source

src <img> javascript URL-

0

src - , .

-3

Source: https://habr.com/ru/post/1782266/


All Articles