[JQuery] equivalent of window.top


I’ve been trying to do something but I’m stuck…
I think the equivalent of window.top is $(document).parent() right?

But I need to select something in that parent, how can I do that?

Something theoretically would like like this


thank you

Why not just use window.top rather than some convoluted long around the world three times way of eventually reaching the same point.

I agree with felgall, just use window.top

If you want to use jQuery functionality on it then you might need to use the $ wrapper:


Thank you for your replies, i m already using


but do I understand from you that I can use the following?


thank you:)