It is necessary to find the element (link) in the nested iframe structure. How many there will be iframe is unknown, possible tree structure. How to implement it on jQuery or in any other way on JS?
1 answer
Here look:
$(function(){ var iFrameDOM = $("iframe#someID").contents(); //Теперь мы можем использовать find() для доступа к элементам iframe: //например iFrameDOM.find(".message").slideUp(); }); And then on the main ...
- The problem is that I do not know how many iframe are there and in which of them my link is located. Is there any library that allows you to automatically check all nested iframes? - Sergey Matiychuk
- What prevents you from counting all the iframe on the page, and see using jQuery on them to run? - Oma
|
document.links,document.frames[].linksLinks and frames embedded - nick_n_a