Friday, 15 August 2014

internet explorer 9 - IE9 JavaScript - using Object.defineProperty on window.location -



internet explorer 9 - IE9 JavaScript - using Object.defineProperty on window.location -

object.defineproperty(window.location, "x", function(){});

i utilize object.defineproperty add together properties objects. in firefox , chrome adding properties , methods window.location works fine in way, in ie9 receive "object doesn't back upwards action" error.

object.defineproperty seems work other things. , adding methods via "window.location.methodname = function(){}" seems work. want add together property.

i ready turn property method, want sure not otherwise possible because property more logical in want for.

javascript internet-explorer-9 window.location defineproperty

No comments:

Post a Comment