Removes the leading and trailing white space and line terminator characters from a string.
For an example that shows how to implement your own trim method, see Prototypes and Prototype Inheritance.
Supported in the following document modes: Internet Explorer 9 standards and Internet Explorer 10 standards. Also supported in Windows Store apps. See Version Information.
Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards.