view iframe-resizer/test/resources/testLib.js @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
line wrap: on
line source

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

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