catching an error on a bad "a href" 
Author Message
 catching an error on a bad "a href"

Hi all, pls respond here:

How do you catch a bad <a href>?

So if you put in a address, let's say:
http://www.*-*-*.com/ or one that does not resolve,
you get an error message back.

Is there any way to trap that so I can put
up my own error message?

The error messages are:
- the page cannot be displayed     or
- cannot find server.

TIA,
Jeff.



Sun, 20 Jul 2003 09:47:01 GMT  
 catching an error on a bad "a href"
If you have control of the server your pages are running on you can just
make customized 404 or 500 error messages and tell your browser to display
your own error messeges. Other than that I wouldn't know.

HIH

Peter



Quote:
> Hi all, pls respond here:

> How do you catch a bad <a href>?

> So if you put in a address, let's say:
> http://192.192.192.192 or one that does not resolve,
> you get an error message back.

> Is there any way to trap that so I can put
> up my own error message?

> The error messages are:
> - the page cannot be displayed     or
> - cannot find server.

> TIA,
> Jeff.



Sun, 20 Jul 2003 16:21:39 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. href="javascript:..." and IE5

2. Disabling "BACK"/"FORWARD" buttons

3. CreateObject("Excel","//server"), MsgBox output

4. Problem With "window.showmodaldialog("")"

5. Disabling "BACK"/"FORWARD" buttons

6. In JScript under WSH, "try/catch" terminates "for"

7. "Object Required" error

8. CreateObject("Scripting.FileSystemObject") Error

9. Division error without "div"

10. "Class not registered" Error

11. "Access is denied" Error

 

 
Powered by phpBB® Forum Software