Is it possible to add a browser code in javascript

后端 未结 4 1474
醉梦人生
醉梦人生 2021-02-20 03:21

I would like to create a webpage with browser specific in javascript.

For example:

can I use code like this in my coding part

chrome.tab.onRemoved.

4条回答
  •  眼角桃花
    2021-02-20 03:30

    The Navigator object contains all information about the visitor's browser.

    https://developer.mozilla.org/en-US/docs/Web/API/Window.navigator

    I think this is pretty much the extent of what is possible in terms of interacting with the specific browser. You can't access other tabs (for security reasons) or tell when a tab is closed.

提交回复
热议问题