javascript - Different browser's behaving in different way for same script -
i facing strange behavior of different browser.i have fallowing condition in javascript working fine in mozilla , chrome not in ie. if(svalue.indexof('<br>')!=-1){ // } when changed code in fallowing way , it's working fine in ie not in mozilla , chrome. if(svalue.indexof('<br>')!=-1){ // } anybody knows why it's happening this?. in advance!!!! i hazard guess getting browser serialize dom html value svalue . html case insensitive, browsers free use whatever case tag names. the solution string.tolowercase()