How to make an alert show up when the page won't load AND it's been 7 seconds.
This is the expected behavior and I would like the alert to explain to the user why this is happening. I see this code written for the time but not for the "page not loading" part.
I tried this code but I can't find information on if both the page didn't load AND it's been 7 seconds.
window.onload = setTimeout(function(){
alert('Looks like this page hasn't loaded yet, it could be because...);
window.location = 'EXPLANATION PAGE';
}, 7000);
Perhaps something along the lines of