 |
Get filename from URL using Javascript | BeFused
substring (method) - extract characters from start (parameter). url is the stringObject url.substring(start) lastIndexOf (method) - position of last occurrence of specified string value, in this case the '/' Add one to lastIndexOf because we do not want t
befused.com |
 |