VBScript LTrim Function

Definition and Usage

RTrim function can remove spaces at the right end of the string.

Syntax

RTrim(string)
Parameter Description
String String Expression.

Instance

Example 1

dim txt
txt="  This is a beautiful day!  "
document.write(RTrim(txt))

Output:

"  This is a beautiful day!"