I want to display the broken image (link) icon for certain objects on a page. I assumed since most browsers have their own way of showing that a link is broken, that it might be something native that can be called? Is there anyway to force it to display using JS/CSS?
Reference: http://sitesbyjoe.com/posts/detail/2012/03/15/make-firefox-show-broken-images
Clarification: I know I can just overlay the div with a tag with broken src, but I'm looking for a CSS/JS solution.
Sample:
<div id="someid" style="background-image:url('someurlthatdoesntexist')"
</div>
onerrorattribute of the img tag can help you set custom image, and that will be uniform across browsers.