get last part of uri or url that start with # hash jquery code example
Example: javascript get last url segment
console.log(this.href.substring(this.href.lastIndexOf('/') + 1));
console.log(this.href.substring(this.href.lastIndexOf('/') + 1));