Here is my JavaScript code so far:
var linkElement = document.getElementById(\"BackButton\"); var loc_array = document.location.href.split(\'/\'); var newT =
You can add a last() function to the Array prototype.
last()
Array
Array.prototype.last = function () { return this[this.length - 1]; };