Re: Code: 501 Protocol scheme 'javascript' is not supported

At 2001-03-22T18:13-0500, Shannon Bristow wrote:-

> I am getting an error message on links to javascript.  To include
> javascript in a page, such as opening a new window, is relatively
> common. Is this really not supported or am I doing something wrong?
>
> Code: 501 Protocol scheme 'javascript' is not supported

It does not mean that the javascript URI scheme is not supported in HTML -
just that it is not supported by the link checker, which does not have a
javascript interpreter, or that it is (unsurprisingly) not supported by a
web proxy being used by the checker. You can use any URI scheme in an HTML
document.  (Though I don't think the javascript scheme has been
registered.)

However, the use of javascript: URIs is almost always unhelpful.  Unless
what is (for example) going to be in the popup window absoutely requires
scripting, consider instead providing an http: (or whatever) URI, and
putting scripting in an onclick attribute. That way, those people with
JavaScript should see the same behaviour but those without it, or who have
it disabled, can still follow the link.


Tim Bagot

Received on Monday, 26 March 2001 18:44:27 UTC