简体   繁体   English

如何遍历不同的iframe?

[英]How do I loop through different iframes?

I am stuck on how to load one iframe and have the next one queuing to be displayed. 我被困在如何加载一个iframe并显示下一个队列的问题上。 How would I write a script that loops through different iframes after time? 我将如何编写一个脚本,该脚本会在一段时间后循环通过不同的iframe?

for (var i=0;i<self.frames.length;i++) {
    var buttons = self.frames[i].document.getElementsByTagName("button");
    // Do stuff with buttons
}

Hope it will do your work 希望它能帮到您

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM