Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Functions
String Object
All Objects
Function: string
string
(object)
The top-level function,
string
, converts the
object
argument to a string representing the object's value.
The
object
argument must be a JavaScript object. If no argument is provided,
string
returns the empty string, "".
In this example, a new
Boolean
object is created with an argument of 0. The
String
function returns, "false", which is the string equivalence of the value of the object.
Code:
boo = new Boolean(0)
document.write(String(boo))
Output:
false
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information