Skip to content

Instantly share code, notes, and snippets.

@davglass
Created November 18, 2010 15:31
Show Gist options
  • Save davglass/705123 to your computer and use it in GitHub Desktop.
Save davglass/705123 to your computer and use it in GitHub Desktop.
//<iframe id="frame">
var frame = Y.Node.getDOMNode(Y.one('#frame'));
YUI({
win: frame.contentWindow,
doc: frame.contentWindow.document
}).use('node', function(Frame) {
//An element inside the frame
var foo = Frame.one('#foo');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment