chrome extension API for refreshing the page

前端 未结 6 1283
我寻月下人不归
我寻月下人不归 2020-12-14 16:54

Is there an API to programmatically refresh the current tab from inside a browser action button? I have background page configured, which attaches a listener via:

         


        
6条回答
  •  春和景丽
    2020-12-14 17:30

    I think what you're looking for is:

    chrome.tabs.reload(integer tabId, object reloadProperties, function callback)
    

    Check out tabs API() documentation for more information.

提交回复
热议问题