Redirect of page not found

S

Shane

Does anyone have or know of where I can get a javascript that see's if
it can connect to a webpage and if it can it redirects you to that page
but if it can not then it directs you to another page. Thank you in
advance for your help.
 
R

Randy Webb

Shane said:
Does anyone have or know of where I can get a javascript that see's if
it can connect to a webpage and if it can it redirects you to that page
but if it can not then it directs you to another page. Thank you in
advance for your help.

How cross-browser you want it? IE and Mozilla support the HTTPRequest
object, which can attempt to retrieve a page (cross-domain security
issues apply), and you can check its status. Redirect accordingly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top