Results 1 to 2 of 2

Thread: page redirecting

  1. #1
    Join Date
    Apr 2006
    Location
    india/kerala/trivandrum
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default page redirecting

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

    seban

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •