public
Created — forked from davglass/gist:705123

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10
//<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');
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.