Forum Moderators: open
I have two tags causing it:
One is a javascript event 'onChange' for a jump down drop menu, which the parser claims 'no attribute "onChange"'
I get the same error against an 'onClick' event.
Anyone got any solutions or am I missing something?
cheers,
asp
A couple of sources say that onchange is valid only inside of forms, and onclick is "Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements." Could that be related?
Example 3.1<img id="b" ...>
<eventlistener id="a" type="(onclick)">
<script>
... some scripting code ...
</script>
</eventlistener>
</img>In Example 3.1, an eventlistener element is registered with the img element. This eventlistener element will be triggered when an onclick event targets or bubbles through the img element.
[w3.org...]
[w3.org...]
Glad you got around to using DTDs for what they are worth.
Andreas