Any way to identify browser tab in JavaScript?

后端 未结 9 630
孤独总比滥情好
孤独总比滥情好 2020-11-27 05:17

I need to be able to identify what tab I am in within the browser. Isn\'t there some bit of information I can get from the browser to identify the tab? I don\'t need to kn

9条回答
  •  萌比男神i
    2020-11-27 05:45

    You can not get tab id with javascript, how ever there is some solution that can help you with like using different session / cookies when user open new tab.

    Some reference:

    Get Browser Tab Index/Id

    get urls of firefox tabs from firefox extension

    How to differ sessions in browser-tabs?

    Get a unique session in each browser tab

    asp.net - session - multiple browser tabs - different sessions?

提交回复
热议问题