Is there any way to find a string representing an object's class,
which will work in Internet Explorer 6?
"typeof" doesn't work -- it returns "object" for all objects:
x = window.open('ht tp://www.yahoo.com/');
alert(typeof x);
And I found this page:
which claims: "To get the type of an object x, use x.class".
However, that doesn't work in IE 6 so it must be Mozilla-only.
Can it be done?
-Bennett
which will work in Internet Explorer 6?
"typeof" doesn't work -- it returns "object" for all objects:
x = window.open('ht tp://www.yahoo.com/');
alert(typeof x);
And I found this page:
which claims: "To get the type of an object x, use x.class".
However, that doesn't work in IE 6 so it must be Mozilla-only.
Can it be done?
-Bennett
Comment