SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
685 B

<html>
<head>
<title>Connecting to events in other frames</title>
<script type="text/javascript">
// Dojo configuration
djConfig = {
isDebug: true
};
</script>
<script type="text/javascript"
src="../../dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.event.*");
function init() {
var ifr = window.frames[0];
var doc = ifr.document;
dojo.event.connect(doc, "onkeypress", "click");
dojo.event.connect(document, "onkeypress", "click");
}
function click(e) {
dojo.debugShallow(e);
}
dojo.addOnLoad(init);
</script>
</head>
<body>
<iframe id="ifr" src="empty.html"></iframe>
</body>
</html>