Javascript : cross-frame instanceof

When you manipulate object in javascript over multiple frame, sometimes you need to check the type of one of them.

For instance, if you do :

I have found here a cross-frame way to get the type of an object :

It will work no matter where your object come from.



Short URL: