When I declare my custom variable like window.myflag
and assign to it something, like a string or a class etc… what is its scope? The current browser window or the current tab? I tried to access it from my option page but it was not possible.
Is there some way to store temporary data or session data, that self clean when the browser is closed, or do I need to handle this temporary aspect manually?