admin管理员组文章数量:1391991
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 to 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
.
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 to 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
.
- 3 And by browsing context you mean exactly what? – shabunc Commented Aug 4, 2011 at 13:56
- This? w3/TR/html5/browsers.html#browsing-context – Paul D. Waite Commented Aug 4, 2011 at 13:57
- I believe he is talking about the html5 notion of browsing context. – Marcus Granström Commented Aug 4, 2011 at 13:58
- @Saeed: your question still isn’t particularly clear. What are you trying to achieve? – Paul D. Waite Commented Aug 4, 2011 at 13:59
- Nothing @Paul. Read the update :) – Saeed Neamati Commented Aug 4, 2011 at 14:00
1 Answer
Reset to default 5Yes with the window object
see what w3 says about it
You can use window.top
to access the top most context for instance.
本文标签: browserHow to access quotbrowsing contextquot in JavaScriptStack Overflow
版权声明:本文标题:browser - How to access "browsing context" in JavaScript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744629488a2616452.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论