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 Objects
String Object
METHOD: String::concat
object.
concat
(strName2, strName3....strName[n])
This method joins the text contained in one string with the text from other specified strings and returns a new string.
The following code combines the text contained in two specified strings and writes the concatenated string to the document.
Code:
myString1 = new String("This demonstrates the ")
myString2 = new String("concat method.")
document.write(myString1.concat(myString2))
Output:
This demonstrates the concat method.
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information