Hello everyone,
I am new here and this might have been addressed already.
I am looking for a way with JavaScript to check to see if a URL Exists and if not then redirect to another URL.
Example:
When someone clicks on a link or a button the javascript would check to see if a remote URL " " exists. If it does exist then send them to that page. If it does not exist then send them to a local URL "testnotfound.html".
I hope this makes sense. Any help would be greatly appreciated.
Thanks,
Lane
I am new here and this might have been addressed already.
I am looking for a way with JavaScript to check to see if a URL Exists and if not then redirect to another URL.
Example:
When someone clicks on a link or a button the javascript would check to see if a remote URL " " exists. If it does exist then send them to that page. If it does not exist then send them to a local URL "testnotfound.html".
I hope this makes sense. Any help would be greatly appreciated.
Thanks,
Lane