annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1 function sendMessage(msg){
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2 'use strict';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3 var msgId = '[iFrameSizerTest]:';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' );
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 }