Why does the DOM have both window and self?
- by hekevintran
Why does the DOM have an object called self and another called window when they are the same thing? To add to the confusion window has a property called self so:
window === window.self === self
Why is it like this? Which one should I use?