i have to update user column in JavaScript. I appended the code in master page and set a time out about 3 second. Now, the function doesn't executed unless user f5 the page (click next page -> function not work -> f5 -> work).
setTimeout(function(){
var elements = document.getElementsByTagName('a');
for (var i = 0; i < elements.length; i++) {
var tmp =elements[i];
if(tmp.innerHTML.indexOf("my checking string") > -1){
tmp.setAttribute("href", "/_layouts/15/xxxx.aspx");
}
}
},3000);
