window.top.location vs window.location
28,283
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.
Author by
asdf_enel_hak
Updated on August 02, 2020Comments
-
asdf_enel_hak almost 4 years
how to sync window.top.location and window.location?