Created
December 23, 2010 15:31
-
-
Save hatched/753124 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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