How to loop through all the iframes elements of a page using jQuery?

To loop through all the iframes element of a page, use the jQuery each() method. You can try to run the following code to learn how to loop through all iframes. We have created three iframes below −


Live Demo

<!DOCTYPE html>
<script src=""></script>
  <iframe src="">Qries Q/A</iframe>
  <iframe src="">Tutorialspoint Free Learning</iframe>
  <iframe src="">Send Files</iframe><br>
  <button>Loop through iFrames</button>