I was wondering if there is reasonable simple method of showing a modal after some time when a page isnt being showed to the user. So i have a page, i dont close it but i go to another one, as soon as that happen a time starts, if i dont come back to the page in lets say less than 5 min, a modal is displayed telling me "ive been away for so long and that i should refresh it" so when i come back to that page i see that modal.
Obviusly im only "requesting" the time code, got the modal already, here it is:
<div style="padding: 20px;"id="id01" class="w3-modal">
<div class="w3-modal-content w3-animate-top w3-card-4">
<header class="w3-container w3-teal">
<span onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-display-topright">×</span>
</header>
<div style="width: 100%" class="w3-container">
<p id="captcha_advertencia">¡Vaya!</p>
<img src="imagenes/captchaIncorrecto.jpeg" />
<p>Los valores que has introducido no se corresponden con el captcha</p>
<p>Por favor introduce correctamente los caracteres de la imagen</p>
</div>
</div>
</div>
Thanks for your time