Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Javascript to change the colour of form background (http://www.go4expert.com/forums/javascript-change-colour-form-background-t23973/)

ihatec 23Nov2010 22:13

Javascript to change the colour of form background
 
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.

shabbir 24Nov2010 08:51

Re: Javascript to change the colour of form background
 
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


All times are GMT +5.5. The time now is 16:30.