We have alternate text, alt attribute, for an img tag in HTML, which will show up when the image doesn\'t come up. I tried using the tag with
alt
img
The element doesn't support an alt attribute, but it does support longdesc. Still, the HTML specification does not dictate how browsers handle long description (or alternate) text. The only way to guarantee any specific behavior is to use JavaScript. Here is an untested example using jQuery:
// Not tested $('iframe').each(function() { if ($(this).attr('href') == '') { // Do something with $(this).attr('longdesc') } });