javascript code to track index of the url code example Example: indexof javascript Array.indexOf(searchElement, fromIndex)