@asilvermtzion
Yeah what fragge said, I was messing round with -2,-3,-4 etc inspired from DoctorDan's reg exp trick and John Resig's find on IE. Here's the code I created to find the properties:-
function inspectObject(obj) {
var prop;
var props = [];
for(var i=-1000;i<1000;i++) {
if(i > 0) {
prop = obj[String.fromCharCode(i)];
if(prop != null) {
props.push(String.fromCharCode(i) + '=' + prop);
}
} else {
prop = obj;
if(prop != null) {
props.push(i + '=' + prop);
}
}
}
return props;
}
x=function x(){};
alert(inspectObject(x));
------------------------------------------------------------------------------------------------------------
"People who say it cannot be done should not interrupt those who are doing it.";
labs : [
www.businessinfo.co.uk]
blog : [
www.thespanner.co.uk]
Hackvertor : [
hackvertor.co.uk]
Edited 1 time(s). Last edit at 03/07/2008 06:36AM by Gareth Heyes.