RicksAtWork
Programmer
I have the following code:
alert(controls.style.backgroundColor);
if(controls.style.backgroundColor == "rgb(255,0,0)")
{
alert('hurrah!');
}
The first alert displays a prompt reading: rgb(255,0,0)
The second alert doesnt occur!!!
What am I doing wrong??
alert(controls.style.backgroundColor);
if(controls.style.backgroundColor == "rgb(255,0,0)")
{
alert('hurrah!');
}
The first alert displays a prompt reading: rgb(255,0,0)
The second alert doesnt occur!!!
What am I doing wrong??