I have a link with an onClick command to change the background color. When you click it the color changes fine, but how can I make it so when you click it again the background color changes to normal?
onClick="style.backgroundColor='#3E729F';"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might define a function in a script element :
and call it like this :
demonstration