Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array last element

var linkElement = document.getElementById("BackButton");
var loc_array = document.location.href.split('/');
var newT = document.createTextNode(unescape(capWords(loc_array[loc_array.length-2]))); 
linkElement.appendChild(newT);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #array #element
ADD COMMENT
Topic
Name
4+2 =