I don\'t know what to do. I tried several sample codes from different sources, I tried them in different browsers (from Chrome 9 to FF 4), and still nothing seems to be working
If you are not dealing with different origins, entering location.origin as the targetOrigin will work.
location.origin
top.postMessage('hello', location.origin);