troubleshooting Question

Check URL is reachable with Javascript

Avatar of YourPCGP
YourPCGP asked on
Web Development
9 Comments1 Solution4888 ViewsLast Modified:
Hi All

I'm developing a website for a company with a link to their company intranet; this will only resolve with DNS from *inside* the network, though (fine, as outside users don't need access to the intranet)

However, I don't want users from outside just getting a generic 404 when they click the intranet link, and was wondering if there was a piece of javascript I could use to check that the URL is reachable from their machine; if not, pop-up a message box, if so, just follow the link.

Thanks in advance


George Preston
ASKER CERTIFIED SOLUTION
lotsofish

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros