chromium/content/test/data/ctrl-click-subframe-link.html

<html>
<head>
<script>
  function simulateCtrlClick(target) {
    var is_mac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
    if (is_mac) {
      var evt = new MouseEvent("click", { "metaKey": true });
    } else {
      var evt = new MouseEvent("click", { "ctrlKey": true });
    }
    return target.dispatchEvent(evt);
  }
  function ctrlClickLink() {
    simulateCtrlClick(frames[0].document.getElementById("link"));
  }
</script>
</head>
<body>

<iframe srcdoc="<a href='title1.html' id='link'>link</a>"></iframe>

</body>
</html>