Mercurial > repos > saskia-hiltemann > ireport
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iframe-resizer/test/resources/testLib.js Tue Jul 01 11:42:23 2014 -0400 @@ -0,0 +1,6 @@ +function sendMessage(msg){ + 'use strict'; + var msgId = '[iFrameSizerTest]:'; + + document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' ); +} \ No newline at end of file