Balakumar
Balakumar

Reputation: 131

Is it possible to get the another tab url form my page?

I have google or some other sites in my browser tab. In another tab i have my html page. I want to get the url of that google page in my html page.Please help me.

Thanks.

Upvotes: 3

Views: 2796

Answers (2)

Stephen
Stephen

Reputation: 603

Well I am not sure what you mean by "Cobrowsing concept" but like vignesh said, it is a security threat to have on a webpage. Probably your best bet would be to write an extension. Here's how: (Chrome, Firefox).

Edit: Actually, for Firefox this would be a lot easier: https://addons.mozilla.org/en-US/developers/

Hope this helps!

Upvotes: 0

Vignesh Subramanian
Vignesh Subramanian

Reputation: 7289

No It is not possible to get the URL of other tabs that are opened by the users Its against privacy and its a security threat you can only access the URL of the current tab by using window.location and window.location.search to get the query string

Upvotes: 4

Related Questions