String.trimRight()
Top  Previous  Next


Syntax
myString.trim()

Arguments
none

Returns
The specified string with any whitespace removed from the end of the string.

Description
Method: Returns the specified string with all whitespace (blank spaces) removed from the end (right side) of the string.

Sample
onLoad () {
  str = "   Hello World   ";
  trace(str.trim()); // returns "   Hello World"
}