Right click this window and select "view source" in order to copy the source for this script.
JavaScript Substring Method
View Source...
The substring method is used to extract some characters in a string; it has a starting default index of 0 that you MUST specify and an option ending point. The original string does NOT change.