有沒有辦法刪除iframe中所有鏈接中的所有錨點標題屬性,以便當您將鼠標懸停在它們上面時,您不會獲得標題?刪除iframe中的所有錨點標題屬性
我知道我可以做類似以下的事情,但由於某種原因,它不工作。
$("iframe").load(function() {
$("iframe").contents().find("a").each(function(index) {
$(this).attr('title','');
});
});
任何幫助,將不勝感激。
是來自同一個域,協議等 – adeneo
加載的iframe不,完全不同的域。我只是想殺錨錨,因爲他們在這個instagram插件中很煩人@adeneo – bryan
看到這個問題/答案:https://stackoverflow.com/questions/6170925/get-dom-content-of-cross- domain-iframe – CodeLikeBeaker