Helpful Information
 
 
Category: Looking for such a script or service
page redirecting

how can i redirect a web page if it is not loaded within a particular time limit

seban

There are several ways to do this.
However, not knowing the details of your site, we can't give you the exact answer.

First, why are you doing this?

Second, what languages can you use?

The only effective way I can think of is with using databases and a server side language, like PHP.


The redirect code is easy, and there are several techniques for this.

Best would be outputting an http-header location redirect directly, as you can do with PHP, but this doesn't work all the time.

Using a meta tag is ok as well:
<meta http-equiv="redirect" content="5;url=http://google.com">
(redirect to google after 5 seconds, where the number is the seconds, and the url can be left off and defaults to the current page)

Failing that, window.location (and perhaps some other methods) in javascript can do this as well.

Again, it all depends on why and how you will know it's "too late", as well as how secure it must be.










privacy (GDPR)