My best solution has been to create a data element with the custom code below which allows me to loop through each item with the <a> tag, find the index of the onclick, and return the text value. It's interesting to see "this" being used - I'll have to give that a try! var pageItemA = document.getE...