Javascript to change the colour of form background

ihatec's Avatar, Join Date: Sep 2010
Go4Expert Member
Is it possible in Javascript to change the colour of form background?

Let's say I have some text form and by default it has white background. But when I click on it I want to the colour to other one.

I know there is an event onClick but is it also valid for such problem or I have to create my own event.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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