Is it possible to use the eval command to execute something with a global scope? For example, this will cause an error:
You should be able to use eval() in global scope by calling it indirectly. However, not all browsers are currently doing this.
eval()
Further Reading.