view iframe-resizer/test/resources/testLib.js @ 2:3c160414da2e default tip

initial upload
author shiltemann
date Thu, 26 Feb 2015 14:05:23 +0100
parents
children
line wrap: on
line source

function sendMessage(msg){
    'use strict';
    var msgId = '[iFrameSizerTest]:';

	document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' );
}