Hi, could someone please advice how I can use VBScript to redirect to another link if the original link is invalid?
Here's my issue:
<a href="detect_link.asp">GO LINK</a>
at "detect_link.asp", I need to have script to detect if the URL is accessible (
if the secured site is not accessible (perhaps 404), the script would then redirect me to another URL.
I tried to used WScript.Shell to ping the secured URL, but that wouldn't work.
Please help! Thanks in advance.
- Allan
Here's my issue:
<a href="detect_link.asp">GO LINK</a>
at "detect_link.asp", I need to have script to detect if the URL is accessible (
if the secured site is not accessible (perhaps 404), the script would then redirect me to another URL.
I tried to used WScript.Shell to ping the secured URL, but that wouldn't work.
Please help! Thanks in advance.
- Allan