Can someone tell me what exactly the object does not support this property or the method means in IE for JS?

while browsing the internet and through stackoverflow.com I found many posts in forums, etc., where this post occurs in IE, but not in other browsers. the fact is that resolutions vary widely, and I don’t understand what is the best way to avoid this problem.

So my question is: if someone knows for sure what exactly this message is, the object does not support this property or method

means, calls, says ...

thanks for the help. Helle

+5
source share
3 answers

, , , , null null.

var thing = document.getElementById('thing');
var x = thing.getAttribute('x');

"", null, .

, IE . , , .

+8

, , .

function Foo() {

};

var something = new Foo();

something.fish(); // Error: because fish is not defined as a method.
+2

, (, Microsoft JS... , ), , @Pointy. @Matt ! IE , - . .

: JS , DOM-Elements DOM-Elements ID, IE - - . . , var [vaiablename] = [value]; . ( IE var. , , .

helle

0

All Articles