print all attributes (javascript) on November 15, 2011 Get link Facebook X Pinterest Email Other Apps //print all object attributes function printObjectAttribute(objToPrint){ var textToPrint = ""; for(var attr in objToPrint){ textToPrint += attr + " : " + objToPrint[attr] + "\n"; } alert(textToPrint); } Comments
Comments
Post a Comment