How to Loop through the Properties of an Object in JavaScript

Posted on the May 10th, 2010 under Internet,JavaScript by Tohir

for (var key in object) {
    alert('value of '+key+' is '+object[key]);
}


Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>