views:

75

answers:

2
+4  A: 

You add a function to the parent, call the parent function whose scope is parent window... which should work.

ccppjava
A: 

"Same origin policy" disallows writing to a different window/iframe document, especially from a different origin (domain). I'm not sure if it is allowed if both pages are from the same domain, but you could try accessing window.parent / window.top. It may also be rejected by same origin, but give it a try.

Delan Azabani
This works as: **$content = $div("body", window.parent.document).append( $close = $div("Close"));** but the div still dissapears when I put bottom margins on it, seems to push it above an invisible barrier.
Neurofluxation