asdf_enel_hak asdf_enel_hak - 4 months ago 16
Javascript Question

window.top.location vs window.location

how to sync window.top.location and window.location?

Answer

This is how you set the parent of the frame (top) to the location of the frame document...

top.location = self.location;

Of course, this code must be executed within the iframe, and is succeptible to the Same-Origin Policy.

Comments