When I have an input field with a certain value in it, and some JavaScript changes its value, I used to be able to click into the field and hit Ctrl-Z in order to get the old value back.
It seems it doesn't work anymore, is that a recent update of the browsers? I am doing something wrong? Is there a way to make it work again?
setTimeout(function () {
document.getElementById("name").value = ""
}, 2000);
<input type="text" id="name" value="Sylvain" />
replace
) -> More input. Only Chrome correctly handles Ctrl-Z. I found that the Mozilla and MS browsers do not go back past the change. I realize that is not quite exactly your case, and also have no solution to offer. Hence the comment and not an answer. – Preempt