Hmm... Just give you a sample here for the future...
function replaceAllIndexPHP() {
var elems = document.getElementsByTagName("a")
for (var i=elems.length-1; i>=0; i--) {
elems[i].href = elems[i].href.replace(/index\.php\?view=/i, "#")
}
}
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17
Question Answered as of 2 Years Ago by
scrappedcola
and
Taywin