I am using the switch content script to expand/collapse my news archives. The code works perfectly and is just what I was looking for. I have put the code in a separate .js file and linked it to my html page. When I try to validate this page I get this error message:
Error Line 252, column 12: there is no attribute "onClick".
<h5 onClick="expandcontent(this, 'sc3')" style="cursor:hand; cursorointer"><span>
Can anyone help me make this page validate? Any ideas are much appreciated.
PS: I am a complete beginner with javascript



ointer"><span>
Reply With Quote

Bookmarks