One Parameter
This should throw an exception.
|
|
2nd Parameter: "*"
This should work, but fails in IE8.
|
|
window.attachEvent
This should work, but fails in IE8.
|
|
document.attachEvent
This is the only implementation that works in both IE8 and FF3.
|
This page provides a demonstration of window.postMessage
.
It's in the HTML 5 spec.
It's implemented in Internet Explorer 8
and Firefox 3, but the implementation in IE8 deviates from the spec.
"*"
is valid according to the spec, IE8 still throws an exception and aborts.
The workaround I found was to use a valid URI, but this negates the cross-domain communication benefits of postMessage.