What are all the browsers that support the window.postMessage call now? I am looking for browsers that support it natively, not through an iFrame hack.
IE8 does not allow postMessage across windows/tabs
http://blogs.msdn.com/b/ieinternals/archive/2009/09/16/bugs-in-ie8-support-for-html5-postmessage-sessionstorage-and-localstorage.aspx
for more info check here
http://www.openajax.org/member/wiki/Browser_Variation_of_the_Hub_Reference_Implementation_%28Illustrative%29
For what it's worth recently I ran into some odd webkit browser/versions out in the wild that did NOT support postMessage. I was using IE(8) detection as my means for seeking an alternative. Instead, I probably should have just done some something like this:
if(window.postMessage){
console.log('Supports post message');
}
Or likely a bit cleaner:
var pm_is_supported = typeof(window.postMessage) == 'function';
Can I use cross-document messaging
FF3+, IE8+, Chrome, Safari(5?), Opera10+
All latest browsers supports that e.g. IE 11, Edge, Firefox 57+, Dafari 11+, iOS Safari 10.2+, Opera mini, Chrome for android, UC Browser etc.
https://caniuse.com/#search=document%20messaging
postMessage is supported in IE8+ HOWEVER
postMessage as soon as page loads (I'm assuming this has to do with the iframe you are posting to needing time to load).setTimeout to wait one or two seconds before calling postMessage.If you want to start with a demo which actually does work in IE, check out this nifty tutorial by Ilya Kantor