• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Advanced Javascript redirect

arew264

OSNN Junior Addict
#1
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 http://mysite.dyndns.org and sends visitors there if there is one. Any assistance anyone could provide would be greatly appreciated.
 
#2
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.
 

Members online

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,242
Members
89,017
Latest member
Seggar