posted 14 years ago
Define the variable in "application" scope. But be careful. That's not just all browsers, it's all the time. Which means that you have to access it in a thread-safe way or you may corrupt it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.