chrome extension API for refreshing the page

前端 未结 6 1272
我寻月下人不归
我寻月下人不归 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:17

    You can also use this:

    chrome.tabs.reload(function(){});
    

    reload function params: integer tabId, object reloadProperties, function callback

    Reference: http://developer.chrome.com/extensions/tabs.html#method-reload

提交回复
热议问题