I am getting the error message:
'document.all[...].style' is null or not an object, and I want to get rid of this. I was hoping that there was a test if a variable or object exists before a command runs.
The problem is happening at this line document.all[devtext].style.color=text;
I tried to put in an if statement, but that just causes the error at the if statement, so I need something to test if an object exists prior to calling it.
Here is the code where the problem happens.