简体   繁体   中英

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

I want to know whether it is possible to detect all other windows open and their URL's in a browser using javascript. 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 :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM