Greasy Fork is available in English.

讨论 » 开发

how to refresh fixed tab?

§
发表于:2014-08-28

how to refresh fixed tab?

i want set autorefresh for second tab on tabbar, i dnt want match page via url, this make many problems. i have fixed tab and i want refresh this tab in some interval

§
发表于:2014-08-28

Hi,

try
location.reload();

Regards
Reek

§
发表于:2014-08-29

fuck i know how to reload tab, i want refresh one tab select it via number, not url match

§
发表于:2014-08-29

would like to find a cross-browser solution

woxxom管理员
§
发表于:2014-08-29
编辑于:2014-08-29

tab control isn't a part of any cross-browser specification, which is only natural since implementation of tabs is 100% application specific.

In such cases the only way is to check different browser methods of tabs control and use whichever tests positive:

if (chrome && chrome.tabs) { refreshtab_chrome() }

tabBrowser = ....
if (tabBrowser) { refreshtab_mozilla() }

.....

发表回复

登录以发表回复。