Here is the case: page A contains iframe B, B contains iframe C, A and B are under the same domain, C under another. C tries to reset parent B\'s location with extra i
From C you can access B's window using window.top.
window.top
Try, var B = window.top; B.location = "...";
var B = window.top; B.location = "...";