diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/iframe-resizer/test/resources/testLib.js	Thu Feb 26 14:05:23 2015 +0100
@@ -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