开发者

detect URL of the other windows open by a browser using javascript

开发者 https://www.devze.com 2023-02-21 01:43 出处:网络
I want to know whether it is possible to detect all other windows open and their URL\'s in a browser using javasc开发者_运维知识库ript. Cant it be done using DOM.

I want to know whether it is possible to detect all other windows open and their URL's in a browser using javasc开发者_运维知识库ript. Cant it be done using DOM.

Thanks in Advance


This wouldn't be quite secure : it would allow any website to know which other websites a user is visiting at a given instant.

That would be considered as a violation of privacy!


Think about it, wouldnt it be a HUGE security issue? Like, I open my GMail and type my password. While another bad, very bad page has got a javascript code, which does a document.getElement* from my GMail tab/window and pushes it to a database or something?

This is something of a very big security issue, also privacy issues are associated with this (as has been pointed out in another answer).

Simple answer for you: NO :-)

0

精彩评论

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