Is there a way in javascript to determine when a XSS issue like the one described in this linked question occurs?
Essentially I want to determine (in the parent) if the javascript in the child iFrame (in a different domain) is attempting to access the parent.
<body>
<iframe id="child" src="http://someother-domain.com"/>
</body>