Advanced Javascript redirect

Discussion in 'Web Design & Coding' started by arew264, May 6, 2005.

  1. arew264

    arew264 OSNN Junior Addict

    I was wondering if there is a javascript code that can check to see if a webpage is somewhere and send you there if it it. The context is that I have a basic website running online now. I also have a linux webserver, but it doesn't run all day. I am trying to find a script that checks if there is a webpage at and sends visitors there if there is one. Any assistance anyone could provide would be greatly appreciated.
  2. Zedric

    Zedric NTFS Guru Folding Team

    I don't think Javascript will cut it. I'd do it in PHP or some other server side language. Maybe try to open the page in question in the background (and display "please wait" or something) and only redirect if it works. The downside is that it will take a while (the timeout) before a failed attempt can be noticed.