This is an alternative way to deliver a string version of an object's internal values. In this case, it is formatted as an Object literal and can then be used in an eval() function to assign another object.
The exact format of what you see depends on the object being examined.
The result of calling this method is string version of the object formatted as an Object literal.
Note that this is not available in the MSIE browser but can be useful when constructing an Object inspector for use in Netscape.
Prev | Home | Next |
Object.toLocaleString() | Up | Object.toString() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |