I´m working with a software where I don't know the global object name(no, it´s not window), but I want to.
console.log(this)
gives me [object object]
for(var property in this) {
console.log(property + "=" + this.property);
}
gives me the properties of 'this'.
However, I need the name/id(something with what I could access the properties in another contexts/objects) of 'this'. Is it somehow possible to get that?
I already searched for this, but couldn´t find a fitting solution.