No on click event should work but if you have controls on the form you may see that clicking form elements does not work then you have to make those controls also call the same color changing JS function