view iframe-resizer/test/resources/testLib.js @ 9:7300ed4c1481 draft default tip

Uploaded
author saskia-hiltemann
date Mon, 04 Sep 2017 10:49:00 -0400
parents ac5f9272033b
children
line wrap: on
line source

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

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