获取具有特定网址的打开的标签计数 [英] Get opened tabs counts having a particular url

查看:96
本文介绍了获取具有特定网址的打开的标签计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道在浏览器中打开的特定网址的数量(例如Firefox)

举例:如果我在浏览器中打开了10个标签,并且打开了www.google.com(共10个),那么我应该得到3.

请帮助我实现这一目标.
在此先感谢

Hi,

I want to know the count of particular url opened in a broswer (say firefox)

Ex: If I have 10 tabs opened in a browser and I opened www.google.com 3 out of 10, I should get the count as 3.

Please help me to achieve this.
Thanks in advance

推荐答案

当您使用网络一词时,这是一个非常狭窄的词.您拥有免费的服务器,然后变得疯狂,但是在客户端上,您被封闭在一个窗口中.该窗口不知道兄弟姐妹(其他选项卡)...这些选项卡由浏览器(在某些情况下甚至由OS)彼此隔开.
在其他浏览器窗口上获取信息的唯一方法是自行打开并将其保存在某个变量中,但是在常见情况下,您无法扫描其他选项卡并收集有关它们的信息...
When you are in the word of the web it''s a very narrow word. You have the server to be free and go wild, but on the client you are closed into a single window. That window does not know about siblings (other tabs)... Those tabs are separated form each other by the browser (in some case even by the OS).
The only way to get info on an other browser window is to open it by yourself and keep it in some variable, but in a common scenario you have no way to scan other tabs and collect info on them...


这篇关于获取具有特定网址的打开的标签计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆