How do I iterate over different frames?

I am designing a website for my company, and I am fixated on how to load one iframe and have the next queue for display. How can I write a script that will go through different iframes after time?

Thanks Lee

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

Hope this works.

+2
source

Source: https://habr.com/ru/post/1340306/


All Articles