HI Kumar,
In SAP CRM onClick event is for trigger the sap crm event.
to trigger the event from java script we have to mention the event name onClientClick = 'eventname'
then only event will be triggered.
make sure that your javascript code does not contain any syntax error. otherwise the event will be not be triggered.
you can check javascript code errors in