Line 23: | Line 23: | ||
modal.style.display = "block"; | modal.style.display = "block"; | ||
modalImg.src = this.src; | modalImg.src = this.src; | ||
− | captionText.innerHTML = this.alt; | + | captionText.innerHTML = this.getAttribute('alt'); |
}) | }) | ||
Revision as of 15:01, 16 October 2016