Answers for "how to get the last pathname in url with windown location"

0

how to get last path from url in javascript

const lastSegmentOfUrl = this.href.substring(this.href.lastIndexOf('/') + 1);
Posted by: Guest on July-11-2021

Code answers related to "how to get the last pathname in url with windown location"

Code answers related to "Javascript"

Browse Popular Code Answers by Language