Click to See Complete Forum and Search --> : w3c validator doesn't like javascript?


BonRouge
10-02-2004, 08:38 PM
The only problem I have getting my page to validate is that the validator says this :

Line 27, column 39: there is no attribute "onClick"

<div id="tempmenu"><a href="#" onClick="MM_openBrWindow('Culture.htm','CULTURE',

I didn't get this problem until I reorganised the page and what was kept where - includes, js files, etc. Is it telling me that I shouldn't be using javascript or... I don't know... what's going on?!

For reference, this (http://cheers-sendai.com/) is the page (the menu is the big one on the left) and this (http://cheers-sendai.com/tempmenu.txt) is the code which is included (SSI) that the validator doesn't like.

Thanks in advance for any help (or just some kind of explanation).

MstrBob
10-02-2004, 08:51 PM
This isn't CSS, but anyway...

XHTML requires all tags and attributes to be lowercase. Thus, onClick becomes onclick. Simple as that.

BonRouge
10-02-2004, 09:24 PM
D'oh!
I keep flipping between the two - the CSS and HTML forums (or is it 'fora').
I put this post in the wrong place. Simple mistake.

And yeah... lowercase. I should have known that.

Thanks a lot.