I wrote the following function and tested it in MSIE, Firefox and Mac
Safari, Works in all but the Safari. What can I do to rectify this?
function processBackgrou nd(){ for (n=1;n<11;n++)
{
cellrow="r"+n
for (i=1;i<17;i++){
cell=cellrow+"w "+i
cellName=cell+" _ID"
thisForm=docume nt.forms[0]
if (document.all[cell].value==="X"){
document.all[cellName].style.backgrou ndColor='#84DFC 1'
}
}
}
}
Safari, Works in all but the Safari. What can I do to rectify this?
function processBackgrou nd(){ for (n=1;n<11;n++)
{
cellrow="r"+n
for (i=1;i<17;i++){
cell=cellrow+"w "+i
cellName=cell+" _ID"
thisForm=docume nt.forms[0]
if (document.all[cell].value==="X"){
document.all[cellName].style.backgrou ndColor='#84DFC 1'
}
}
}
}
Comment