The problem that I\'m having is that my code works fine in JavaScript but doesn\'t work correctly in Firefox or safari and wondering why. What I\'m doing is I have a loop going
Try using document.getElementsByTagName, as I believe this is supported across all browsers.
var linkList = document.getElementsByTagName("a");