Name

toString() — NN 4 IE J3 ECMA 1

Synopsis

Returns the object’s value (script statement listing and function wrapper) as a string data type. You don’t need this method in practice because the browsers automatically convert values to strings when they are needed for display in alert dialogs or in-document rendering.

Returned Value

String.

Parameters

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.