[英]How do I change this <img> tag's source with an “if else if” statement?
[英]I want to reference an img's alt text using event handlers. How do I reference the img tag in a function
检查图像 alt: cr.alt
返回它: alert(cr.alt)
更改图像 alt: cr.alt = 'your new alt';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.