~cytrogen/gstack

ref: 7665adf4fe8b13ad40b687b53ef66b7bc551147f gstack/browse/test/fixtures/iframe.html -rw-r--r-- 852 bytes
7665adf4 — Garry Tan feat: headed mode + sidebar agent + Chrome extension (v0.12.0) (#517) 14 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Test Page - Iframe</title>
  <style>
    body { font-family: sans-serif; padding: 20px; }
    iframe { border: 1px solid #ccc; width: 400px; height: 200px; }
  </style>
</head>
<body>
  <h1 id="main-title">Main Page</h1>
  <iframe id="test-frame" name="testframe" srcdoc='
    <!DOCTYPE html>
    <html>
    <body>
      <h1 id="frame-title">Inside Frame</h1>
      <button id="frame-btn">Frame Button</button>
      <input id="frame-input" type="text" placeholder="Type here">
      <div id="frame-result"></div>
      <script>
        document.getElementById("frame-btn").addEventListener("click", () => {
          document.getElementById("frame-result").textContent = "Frame button clicked";
        });
      </script>
    </body>
    </html>
  '></iframe>
</body>
</html>