Skip to content

Instantly share code, notes, and snippets.

@triptych
Forked from davglass/gist:705123
Created November 22, 2010 17:37
Show Gist options
  • Save triptych/710310 to your computer and use it in GitHub Desktop.
Save triptych/710310 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