Why does the DOM have both window and self?

Posted by hekevintran on Stack Overflow See other posts from Stack Overflow or by hekevintran
Published on 2010-05-09T11:48:12Z Indexed on 2010/05/09 11:58 UTC
Read the original article Hit count: 150

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about dom

Related posts about JavaScript