I am making chm file using HTml. However, images are often broken because they are not properly applied in html files.
You want to create a tool that can check broken images when the image in the html file looks broken by x. (For Check)
Is it possible? If possible, what code would be a hint?
html java image
I was wondering if you could use the onerror attribute.
<img src="image.png" onerror="imgError(this);"/>
function imgError(image) {
image.onerror = "";
image.src = "/images/noimage.gif";
return true;
}
© 2024 OneMinuteCode. All rights reserved.