How can I pull a picture out of iframe js. Without closing the iframe?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="src/style.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> </head> <body> <iframe id="fff"><img src="https://urgi-stv.ru/wp-content/uploads/2/c/a/2ca07ff0390ccfd7fc4392f6c5416bbc.jpeg"/></iframe> <script> setInterval(() => { $("#fff").contents().find("img") // ?? }, 3000) </script> </body> </html>
<iframe>element, and it's missing asrcattribute. I supposed you mean you want to have access to an image from the document rendered in an iframe element?