- From: Matthew Brealey <webmaster@richinstyle.com>
- Date: 12 Oct 2000 15:45:29 -0000
- To: www-style@w3.org
You wrote: > > at "5.11.2 The link pseudo-classes: :link and :visited" in the CSS 2 > specs there is this sentence: > "The document language determines which elements are hyperlink source > anchors. For example, in HTML 4.0, the link pseudo-classes apply to A > elements with an 'href' attribute." > > The question is whether it makes sense to extend this to the "onClick" > attribute. No. The document language is HTML, not JavaScript. In addition, although non-normative, it says 'link pseudo-classes apply to' A[href]. ' JavaScript is not the document language. 'onclick = script [CT] The onclick event occurs when the pointing device button is clicked over an element. This attribute may be used with most elements.' Onclick is an event. Onclick is not a link. Onclick might do alert('You clicked'). (The location property (or whatever its equivalent in VBs**t is is not a link either).)
Received on Thursday, 12 October 2000 11:45:34 UTC