Alternate text for iframes

前端 未结 4 1414
野的像风
野的像风 2020-12-20 16:19

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

4条回答
  •  执笔经年
    2020-12-20 17:04

    Since my first attempt misunderstood your question, let's try this instead:

    
    

    This will read the "alt" tag value for any iframe with either no src attribute or a src attribute with a blank value, and write the alt text into the body of that iframe.

    Assist from Write elements into a child iframe using Javascript or jQuery

提交回复
热议问题