[Javascript] link onclick=location.href not working

Chris T christ at saeweb.com
Tue Mar 30 10:29:44 CST 2004


>    Just one small comment on David's treatise:
>
> >A real hard-core standards type would suggest prefacing the javascript
> >directive reassigning the window.location.href with "javascript:", but
I'm
> >not him.
>
>    Wouldn't that hard-core standards type be incorrect?  A protocol or
pseudoprotocol may be necessary (by standards) for the href property, but I
didn't think that applied to event handlers.

Will that even work if you add the javascript: before it? You only use
javascript: if you're putting it in the href, not on a built-in javascript
event handler.

Chris Tifer




More information about the Javascript mailing list