3 ms·
Some browsers allow __defineGetter__ and __defineSetter__ to replace native properties such as window.location
by ryanpetrich 15y ago
Some browsers allow __defineGetter__ and __defineSetter__ to replace native properties such as window.location
- kree10 15y agoInteresting. I did a few tests and it seems Chrome will let me override window.location with __defineSetter__() but not document.location, while Safari was the other way around. Firefox 3.x won't let me redefine either one ("TypeError: redeclaration of var location").