The self and window properties of the window object reference the current window.
Internet Explorer treats these properties differently than other browsers will so be sure to test your apps in all popular browsers if you refer to any windows using these properties instead of just refering to the window object itself..
Javascript CODE EXAMPLE
if(window.window === window && window.self === window){
alert("This browser sees all of these window objects as identical.");
} else {
alert("This browser sees differences in these window objects.");
}
Javascript CODE EXAMPLE
if (window.window === window.self) {
alert("This browser sees 'window' and 'self' as identical entities.");
} else {
alert("This browser sees 'window' and 'self' as different entities.");
}