Skip to content
premasagar edited this page Sep 13, 2010 · 5 revisions

A new AOMI object is initialised with the following default options. To change these, supply an object with the options you wish to change – either to the $.iframe() constructor function, or to aomi.options().

{
    attr:{
        scrolling:'no',
        frameBorder:0,
        allowTransparency:true
    },
    src:'about:blank', // don't include in attr object, or unexpected triggering of 'load' event may happen on applying attributes
    doctype:5, // html5 doctype
    target:'_parent', // which window to open links in, by default - set to '_self' or '_blank' if necessary
    autoheight:true, // shrink the iframe element to the height of its document body
    autowidth:false,
    css: {
        margin:0,
        padding:0,
        borderWidth:0,
        borderStyle:'none',
        backgroundColor:'transparent',
        width:'100%' // ensures that iframe element stretches to fill the containing width
    },
    title:'' // a title for the iframe document
}

Clone this wiki locally