Object.defineProperty(window.location, "x", function(){});
I use Object.defineProperty to add properties to objects. In Firefox and Chrome adding properties and methods to window.location works fine in this way, however in IE9 I receive an "Object doesn't support this action" error.
Object.defineProperty seems to work with other things. And adding methods via "window.location.methodName = function(){}" seems to work. However I want to add a GET property.
I am ready to just turn the property into a method, however I want to be sure it is not otherwise possible because a property is more logical in what I want it for.