IR Framework

String.trim Method

Returns a copy of the string with any leading or trailing spaces removed.
object.trim ( )

Arguments

object
Required. Always the name of a String object.



Return Value

The String.trim method returns a copy of the string with any leading or trailing spaces removed.

Remarks

The following example illustrates the use of the String.trim method.

Alert("   Hello    ".trim());


Requirements

rTrim(), lTrim()