Below javascript has different effect in different browsers.
document.write(this.location.constructor);
document.write("<br/>");
document.write(this.constructor);
document.write("<br/>");
In Chrome, the page has
function Location() { [native code] }
function DOMWindow() { [native code] }
In Firefox, the page has
[object Location]
[object Window]
In IE8, the page has
undefined
undefined
The difference between Chrome and Firefox might be different toString() implementation. I just cannot understand why the two objects' constructors are undefined in IE. If their constructors are undefined, what about their prototypes? also undefined?