开发者

How to access "browsing context" in JavaScript?

开发者 https://www.devze.com 2023-03-26 09:24 出处:网络
Is there a way to access browsing context in JavaScript? Update: I\'m reading HTML5 specification and there, it says that for each new tab, or new window, or iframe there is a notion of browsing cont

Is there a way to access browsing context in JavaScript?

Update: I'm reading HTML5 specification and there, it says that for each new tab, or new window, or iframe there is a notion of browsing context which is created by browser and each new document that you surf (each new link) would be stored and presented t开发者_运维技巧o users in this browsing context.

I just wonder if we have access to it. For example, a browsing context has a history and we can access that using window.history.


Yes with the window object

see what w3 says about it

You can use window.top to access the top most context for instance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号