Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

is there a javascript function to obtain the tab id the script is working in?

  • 1 reply
  • 1 has this problem
  • Last reply by jscher2000

more options

We are trying to determine the browser tab id for a security patch

All Replies (1)

more options

Sorry, but what do you mean by "browser tab id"?

Generally speaking, unprivileged scripts in web pages perceive themselves as running in a window object and have no knowledge of whether the window object is the only open tab or one of many tabs.

If you are developing an add-on, you might want to pose your question on this site: