If my page is buried several iframes deep, is it possible to count how many levels down I am (cross-domain)?
(I’m pretty sure the answer is “no”.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, I’m almost certain there’s no way to do that.
You might try something like
, but I suspect you will fail with multiple domains, due to same origin policy.
Might be worth a shot, though. Maybe access is blocked to document contents only, and not to window object.