Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
196
rated 0 times [  199] [ 3]  / answers: 1 / hits: 29814  / 13 Years ago, fri, march 18, 2011, 12:00:00

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


More From » facebook

 Answers
1

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.


[#93204] Thursday, March 17, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mariamiyanab

Total Points: 75
Total Questions: 102
Total Answers: 92

Location: British Indian Ocean Territory
Member since Tue, Feb 22, 2022
2 Years ago
;