summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/ssl/top_frame.html
blob: ac5c1441c2bc12fdde20dc244594828c45ae192b (plain)
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
<html>
 <head><title>This is a test page with frames</title>
 <script>
  function simulateClick(target) {
    var evt = document.createEvent("MouseEvents");
    evt.initMouseEvent("click", true, true, window,
                       0, 0, 0, 0, 0, false, false,
                       false, false, 0, null);

    return target.dispatchEvent(evt);
  }

  function clickLink(linkID) {
    target = frames['navFrame'].document.getElementById(linkID);
    if (target == null)
      alert("clickLink failed for id=" + linkID);
    return simulateClick(target);
  }
 </script>
 </head>
 <frameset cols="25%,75%">
   <frame src="frame_left.html" name="navFrame">
   <frame src="frame_right.html" name="contentFrame">
 </frameset>
</html>