Very good, I have this code in which I intend that after inactivity, redirected to login.html
var nameTime;
function ini() {
nameTime = setTimeout('location="login.html"',5000);
}
function parar() {
clearTimeout(nameTime);
nameTime = setTimeout('location="login.html"',5000);
}
After
<body onload="ini()" onkeypress="parar()" onclick="parar()" onmousemove="parar()" >
I would like to put some kind of warning that has been redirected by inactivity, something toast or alert. I already have this, what I do not know is how to make the user see some type of message when it is redirected.