MooTools new Element iframe

Creates an IFrame HTML Element and extends its window and document with MooTools.

new Element(iframe, {
id: openFrame,
src: http://mootools.net/,
styles: {
width: 800,
height: 600,
border: '1px solid #ccc'
}
}).inject($(iframeDiv));