Hi, do you know a good way to check if a variable is the window object in javascript? I tried with:
var variable=window;
Object.prototype.toString.call(variable);
In Firefox it returns "[object Window]"
but in IE "[object Object]"
so that's not the right way. Do you know an accurate way to check it?