I'm curious to know if IE 7 and IE 8 are compatible with the JavaScript .indexOf() method because I keep getting this error message:
SCRIPT438: Object doesn't support property or method 'indexOf'
This error appears in the IE9 debug console (used under both IE7 and IE8 Browser mode).
The section of code where .indexOf() is used looks like this:
if(shirt_colour == 'black') {
p_arr=['orange','red','green','yellow','bblue','rblue','pink','white','silver','gold'];
if( p_arr.indexOf(print_colour) != -1 ) rtn = true;
}