Skip to content

Instantly share code, notes, and snippets.

@hatched
Created December 23, 2010 15:31
Show Gist options
  • Save hatched/753124 to your computer and use it in GitHub Desktop.
Save hatched/753124 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" charset="utf-8" src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
<script type="text/javascript">
YUI().use('node', 'event', function(Y) {
Y.log(Y.one('iframe'));
Y.log(Y.one('iframe').get('contentDocument'));
Y.one('iframe').get('contentDocument').on('click', function(e) {
Y.log(e);
});
});
</script>
</head>
<body>
<iframe src="http://www.yahoo.com" id="myframe" width="300" height="300"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment