JavaScript » String » substr

Syntax:
object.substr(start[, length])

This method extracts the characters from a string beginning at the specified start index for the specified number of characters.