Don't use onclick. Bind the events in your JavaScript. A library like jQuery makes this easy and browser independent.
It's better code and solves your validation problems. On Thu, Oct 15, 2009 at 5:20 AM, designer <desig...@gwelanmor-internet.co.uk > wrote: > Precisely! > > ----- Original Message ----- From: "Anthony Gr." <ant.grak...@gmail.com> > To: <wsg@webstandardsgroup.org> > Sent: Wednesday, October 14, 2009 6:58 PM > Subject: Re: [WSG] Problem with onclick and onClick > > > > > How does "onclick" become to "onClick"? > > 2009/10/14 designer <desig...@gwelanmor-internet.co.uk>: > >> Can anyone help me with what is a basic question please? >> >> I have a library item (in Dreamweaver) which includes an onclick: >> >> <a href="#" onclick="window.print();return false" > . . . etc >> >> When the library item is inserted (into 37 pages) the format remains lower >> case and all pages validate, but when uploaded to the server the pages >> don't >> validate because they change to "onClick". How can I stop this? >> >> What's going on? Anyone come across this? >> >> Any help gratefully received. >> >> Bob >> ******************************************************************* >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: memberh...@webstandardsgroup.org >> ******************************************************************* >> > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > ******************************************************************* > > > > > > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > ******************************************************************* > > ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************