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
I'm not sure of the security concerns, but typically, I just grab the parent window location like this:
var url = (window.location != window.parent.location) ? document.referrer: document.location; top.postMessage('message', url);