If I define a JavaScript global variable called name, does that hide the window.name property?
I ask this in the context of the Facebook JavaScript authentication API, since I noticed that having a global of that name would break it, and also since I see that window.name is used in their code.
If name is a global variable, then name and window.name are equivalent.
Global variables and functions are members of the global object. In browsers, the global object contains a window member whose value is the global object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With