var obj = new Object(); obj.test = 1; obj.test2 = 'a'; obj.test3 = new Array('b', 'c', 'd'); obj.toString = function(){ return obj['test'] + '\n' + obj['test2'] + '\n' + obj['test3'];}; alert(obj.toString());
Images and content © 2005 www.yakjive.com/TheGISGuy and News Community, LLC. All Rights Reserved.
For your own family, small business, or nonprofit online newspaper visit www.YakJive.com.