For... in...
Posted: Sat Aug 06, 2005 12:23 am
Hi !
Could you remind me the use of 'for... in...' ?
Thanx !
Could you remind me the use of 'for... in...' ?
Thanx !
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
var buf = new Array();
for(var i in window)
{
buf[buf.length] = 'window[' + i + '] = ' + (typeof(window[i]) == 'string' ? '"' + window[i].replace('\\','\\\\').replace('"','\\"') + '"' : window[i].toString());
}
alert(buf.join('\n'));