substr Method (JavaScript)
Returns a substring beginning at a specified location and having a specified length.
stringvar.substr(start [, length ])
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.
Applies To: String Object (JavaScript)