Horje
get last path segment of url in javascript Code Example
get last path segment of url in javascript
const last_segment = window.location.pathname.split('/').pop();
javascript get last url segment
console.log(this.href.substring(this.href.lastIndexOf('/') + 1));




Javascript

Related
how to get file name in directory node js Code Example how to get file name in directory node js Code Example
how to open link in new tab in react js Code Example how to open link in new tab in react js Code Example
on click fade out jquery Code Example on click fade out jquery Code Example
clz32() js Code Example clz32() js Code Example
clz32 Code Example clz32 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8