iFrameResize({ log : true, // Enable console logging enablePublicMethods : true, // Enable methods within iframe hosted page sizeHeight : true, resizedCallback : function(messageData){ // Callback fn when message is received $('p#callback').html( 'Frame ID: ' + messageData.iframe.id + ' Height: ' + messageData.height + ' Width: ' + messageData.width + ' Event type: ' + messageData.type ); } });