Spaces:
Sleeping
Sleeping
Download browser-use-main/tests/ci/browser/iframe_template.html from Speedofmastery/HMM: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/spaces/Speedofmastery/HMM/resolve/main/browser-use-main/tests/ci/browser/iframe_template.html
- Command line
-
hf download hf://spaces/Speedofmastery/HMM/browser-use-main/tests/ci/browser/iframe_template.html
-
curl -L -o iframe_template.html https://huggingface.co/spaces/Speedofmastery/HMM/resolve/main/browser-use-main/tests/ci/browser/iframe_template.html
644 Bytes
| <html> | |
| <head> | |
| <title>Same-Origin Iframe</title> | |
| </head> | |
| <body style="padding: 10px; background: #fff;"> | |
| <h3>Same-Origin Iframe Content</h3> | |
| <button id="iframe-btn">Iframe Button</button> | |
| <input type="text" id="iframe-input" placeholder="Iframe input" /> | |
| <script> | |
| // When button is clicked, increment counter in parent page using addEventListener | |
| document.getElementById('iframe-btn').addEventListener('click', function() { | |
| if (window.parent && window.parent !== window) { | |
| // Call parent's incrementCounter function | |
| window.parent.incrementCounter('Same-Origin Iframe'); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |