I'm having a PDF document with two links:
Example:
1. http://intranet/example.pdf
2. http://extranet/example.pdf
Now I want to reduce these two links to one link: First check if access to intranet works. If not, go to extranet.
I want to implement this via Javascript. Is this possible?