where 'someid' is the id of the iframe that's in the modal window.
The problem: My site is displayed in an iframe on other sites (with permission) So now there is an iframe in site A displaying my site B and site B then has a modal window with the iframe 'someid' that needs to be closed.
I've tried lots of combinations of parent, window, contentWindow,
top.window etc and can't find any that work.
This is the structure as I think...
parent (site A)--> document in parent --> iframe in document (topframe) --> 2nd parent (site B - my site)--> document in 2nd parent --> iframe in document (someid)