Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to display object in alert javascript

var myObj = {"myProp":"Hello"};
alert (JSON.stringify(myObj));    // alerts {"myProp":"Hello"};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #object #alert #javascript
ADD COMMENT
Topic
Name
6+2 =