VBScript LTrim Function

Definition and Usage

The RTrim function can remove spaces from the right side 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!"