Hi all,

I've been messing around with Javascript and working in Firefox.
I did this:

Code JavaScript:
A = {
   prop:"prop"
};
 
B = {};
 
B.__proto__ = A;
alert(B.prop); // works

However, this doesn't work in IE (not yet tested Safari etc). Does anyone know of a way of doing this or something similar in IE? Thanks a lot if so - it's very useful.

All the best