Menu
I have a function that returns one of two values. Both are strings. I tried this:
[code]
if (getFirstName().indexOf(“F”) == 0){
document.write(“<tr bgcolor=’#EEEEE0′>”);
}else{
document.write(“<tr bgcolor=’#ffffef’>”);
}
Is this the correct way to check if the value of the first character is a “F” and act accordingly?