Horje
javascript get last url segment 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
angularjs 'angular' is not defined Code Example angularjs 'angular' is not defined Code Example
clear textbox js Code Example clear textbox js Code Example
how to get key from value in javascript Code Example how to get key from value in javascript Code Example
onclick inline function react Code Example onclick inline function react Code Example
is var is not blank then display value in javascript Code Example is var is not blank then display value in javascript Code Example

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